Function at 0x49c620
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d65e5
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x5020a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 1
mov dword [ebp - 0x230], eax
call fcn.004204f0
add esp, 4
call fcn.00473980
push 0
test eax, eax
je 0x49c688
push 0x4d9290
push str.CADWindows7XP
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x49d315
push edi
lea ecx, [ebp - 0x264]
call fcn.004912d0
push ecx
mov esi, esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], esi
call fcn.00404de0
test eax, eax
je 0x49d331
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
push str._pid
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404740
test al, al
jne 0x49c6df
push 4
push str._pid
mov ecx, esi
call fcn.00404a10
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0
call fcn.00492500
or ebx, 0xffffffff
test eax, eax
je 0x49c744
push ecx
mov ecx, esp
push str._pid
call fcn.00404b10
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x264]
call fcn.00492590
push eax
mov ecx, 0x505d24
mov byte [ebp - 4], 2
call fcn.00403210
mov edx, dword [ebp - 0x248]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49c744
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a1810
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
call fcn.00404de0
test eax, eax
je 0x49d331
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
push esi
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 3
call fcn.00404740
test al, al
jne 0x49c7dc
test esi, esi
jne 0x49c7b6
xor ecx, ecx
jmp 0x49c7cf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49c7c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x228]
call fcn.00404a10
mov eax, dword [ebp - 0x228]
mov byte [ebp - 4], 4
cmp dword [eax - 4], 1
jle 0x49c800
push dword [eax - 0xc]
lea ecx, [ebp - 0x228]
call fcn.00404870
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [ebp - 0x228]
push dword [eax - 8]
push eax
call fcn.004a9817
mov edx, eax
add esp, 8
test edx, edx
js 0x49d33b
mov ecx, dword [ebp - 0x228]
cmp edx, dword [ecx - 8]
jg 0x49d33b
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x248], ecx
mov word [eax + edx*2], cx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], ecx
mov byte [ebp - 4], 5
call fcn.00404de0
mov ecx, eax
test ecx, ecx
je 0x49d331
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x4ea12c
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call fcn.00404740
test al, al
jne 0x49c8a4
push 1
push 0x4ea12c
lea ecx, [ebp - 0x21c]
call fcn.00404a10
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00479140
mov edx, dword [ebp - 0x21c]
add esp, 0xc
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49c8e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x505d24]
cmp dword [eax - 0xc], 0
jne 0x49c924
mov edx, dword [ebp - 0x240]
mov esi, dword [ebp - 0x244]
sub edx, esi
sar edx, 2
cmp edx, 3
jb 0x49c91a
lea eax, [esi + 8]
mov ecx, 0x505d24
push eax
call fcn.00403210
mov eax, dword [0x505d24]
cmp dword [eax - 0xc], 0
je 0x49ca12
lea eax, [ebp - 0x21c]
push eax
call fcn.0047a860
add esp, 4
push dword [ebp - 0x21c]
mov byte [ebp - 4], 8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49c96e
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x49c96e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x238]
push eax
call fcn.00471b00
add esp, 4
mov ecx, dword [eax]
lea edx, [ebp - 0x22c]
push edx
mov byte [ebp - 4], 9
mov eax, dword [ecx]
call dword [eax + 0xf4]
push dword [ebp - 0x21c]
push dword [0x505d24]
push str.DPid
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x22c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49c9c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x49c9f1
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x49c9f1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x49c9f1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov eax, ebx
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49ca12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x240]
mov esi, dword [ebp - 0x244]
sub eax, esi
sar eax, 2
cmp eax, 4
jb 0x49ca9d
mov eax, dword [esi + 0xc]
sub eax, 0x10
push eax
call fcn.00404520
add esp, 4
cmp dword [eax + 4], 0
lea esi, [eax + 0x10]
jl 0x49ca86
push str.SMDB
push esi
call fcn.004a19ec
add esp, 8
test eax, eax
je 0x49ca5b
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49ca7c
cmp dword [esi - 0xc], 0
jl 0x49ca86
push 0x4eb610
push esi
call fcn.004a19ec
add esp, 8
test eax, eax
je 0x49ca86
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x49ca86
mov dword [ebp - 0x248], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49ca9d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00404de0
test eax, eax
je 0x49d331
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push edi
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0xa
call fcn.00404740
test al, al
jne 0x49cafc
test edi, edi
jne 0x49cad6
xor ecx, ecx
jmp 0x49caef
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49cae0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x21c]
call fcn.00404a10
mov edi, dword [ebp - 0x21c]
mov byte [ebp - 4], 0xb
cmp dword [edi - 0xc], 0
jl 0x49cb4f
push 0x4d9310
push edi
call fcn.004a19ec
add esp, 8
test eax, eax
je 0x49cb27
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49cb48
cmp dword [edi - 0xc], 0
jl 0x49cb4f
push 0x4d9318
push edi
call fcn.004a19ec
add esp, 8
test eax, eax
je 0x49cb4f
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x49cb4f
mov eax, 1
jmp 0x49cb51
xor eax, eax
mov dword [0x505d20], eax
cmp dword [edi - 0xc], 0
jl 0x49cf28
push 0x4d9320
push edi
call fcn.004a19ec
add esp, 8
test eax, eax
je 0x49cb7b
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49cba8
cmp dword [edi - 0xc], 0
jl 0x49cf28
push 0x4d9328
push edi
call fcn.004a19ec
add esp, 8
test eax, eax
je 0x49cede
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x49cede
push ecx
mov esi, esp
mov dword [ebp - 0x234], esi
call fcn.00404de0
test eax, eax
je 0x49d331
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x4d9328
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.00404740
test al, al
jne 0x49cbec
push 2
push 0x4d9328
mov ecx, esi
call fcn.00404a10
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x264]
call fcn.00492590
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 0xd
cmp dword [eax - 0xc], 0
jne 0x49cc62
push ecx
mov ecx, esp
push 0x4d9320
call fcn.00404b10
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x264]
call fcn.00492590
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xe
call fcn.00403210
mov edx, dword [ebp - 0x22c]
mov eax, ebx
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49cc62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49ce82
xor esi, esi
nop dword [eax + eax]
mov eax, dword [ebp - 0x220]
test esi, esi
js 0x49ccd0
cmp esi, dword [eax - 0xc]
jg 0x49ccd0
lea ecx, [esi + esi]
add eax, ecx
mov dword [ebp - 0x224], ecx
push 0x4ea5d0
push eax
call fcn.004a19ec
mov ecx, dword [ebp - 0x224]
mov ebx, eax
mov eax, dword [ebp - 0x220]
add esp, 8
test ebx, ebx
jne 0x49ccbf
mov edx, dword [eax - 0xc]
jmp 0x49ccde
sub ebx, eax
mov dword [ebp - 0x224], ecx
sar ebx, 1
cmp ebx, 0xffffffff
jne 0x49cd13
jmp 0x49ccd3
lea ecx, [esi + esi]
mov edx, dword [eax - 0xc]
test esi, esi
js 0x49ce76
cmp esi, edx
jg 0x49ce76
add eax, ecx
push 0x4edd74
push eax
call fcn.004a19ec
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x49ce70
mov eax, dword [ebp - 0x220]
sub ebx, eax
sar ebx, 1
cmp ebx, 0xffffffff
je 0x49ce76
xor esi, esi
test ebx, ebx
cmovns esi, ebx
mov dword [ebp - 0x234], esi
cmp esi, dword [eax - 0xc]
jl 0x49cd39
add eax, 0xfffffff0
push eax
call fcn.00404520
add esp, 4
lea esi, [eax + 0x10]
jmp 0x49ce0b
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x49cd5f
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x49cd5f
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x22c], eax
jmp 0x49cd87
call fcn.00404de0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x22c], eax
test ecx, ecx
je 0x49d331
test eax, eax
jne 0x49cd93
test esi, esi
jne 0x49d33b
mov eax, dword [ecx]
push 2
push esi
call dword [eax]
test eax, eax
je 0x49d345
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x234]
test eax, eax
js 0x49d33b
cmp eax, dword [esi - 8]
jg 0x49d33b
lea ecx, [eax + eax]
mov dword [esi - 0xc], eax
xor eax, eax
mov word [ecx + esi], ax
test ecx, ecx
je 0x49ce0b
test esi, esi
je 0x49cdfb
mov eax, dword [ebp - 0x224]
push ecx
test eax, eax
je 0x49cde7
push eax
push esi
call fcn.004a1290
add esp, 0xc
jmp 0x49ce0b
push 0
push esi
call fcn.004a1810
add esp, 0xc
cmp dword [ebp - 0x22c], 0
jne 0x49ce0b
call fcn.004a4609
mov dword [eax], 0x16
call fcn.004a452f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49ce1e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x220]
lea edx, [esi - 0x10]
inc ebx
mov dword [ebp - 0x22c], ebx
cmp ebx, dword [eax - 0xc]
jge 0x49ce59
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
mov esi, dword [ebp - 0x22c]
test eax, eax
jg 0x49cc80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49cc80
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49ce70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
or ebx, 0xffffffff
push ecx
mov esi, esp
mov dword [ebp - 0x234], esp
mov dword [ebp - 0x22c], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
push eax
call fcn.00404520
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 0xf
call fcn.004955c0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 4]
call fcn.00457700
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49cede
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi - 0xc], 0
jl 0x49cf28
push 0x4d9330
push edi
call fcn.004a19ec
add esp, 8
test eax, eax
je 0x49cf03
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49d134
cmp dword [edi - 0xc], 0
jl 0x49cf28
push 0x4d9338
push edi
call fcn.004a19ec
add esp, 8
test eax, eax
je 0x49cf28
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49d134
cmp dword [ebp - 0x248], 0
jne 0x49d134
cmp dword [0x505d20], 0
mov dword [0x505d1c], 0
jne 0x49cf52
call fcn.00472350
mov dword [0x505d20], eax
lea eax, [ebp - 0x270]
push eax
call fcn.004955c0
mov ecx, eax
call fcn.0044fee0
mov eax, dword [ebp - 0x270]
xor ebx, ebx
mov edx, dword [ebp - 0x26c]
xor esi, esi
mov byte [ebp - 4], 0x10
cmp eax, edx
je 0x49cfa4
lea edi, [ebx + 1]
mov ecx, dword [eax]
cmp ecx, 0xa78
jne 0x49cf8e
mov ebx, edi
jmp 0x49cf97
cmp ecx, 0xa79
cmove esi, edi
add eax, 4
cmp eax, edx
jne 0x49cf80
mov edi, dword [ebp - 0x21c]
call fcn.0047a1f0
test eax, eax
je 0x49d003
test esi, esi
je 0x49cfbf
test ebx, ebx
jne 0x49cfbf
call fcn.00493cd0
cmp eax, 2
je 0x49d010
push 0x4e57a0
push str.start
push 0x4d89a8
call fcn.004787c0
add esp, 0xc
cmp dword [0x505d10], 0
jne 0x49d033
push 0x130
call fcn.0049f987
add esp, 4
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0x11
test eax, eax
je 0x49d028
mov ecx, eax
call fcn.004964a0
jmp 0x49d02a
test ebx, ebx
je 0x49cfbf
test esi, esi
jne 0x49cfbf
call fcn.00492ba0
xor ebx, ebx
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x230], ebx
call fcn.00403060
jmp 0x49d1ae
xor eax, eax
mov byte [ebp - 4], 0x10
mov dword [0x505d10], eax
call fcn.00496b20
call fcn.004739e0
mov edi, dword [ebp - 0x230]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x234], eax
lea ebx, [edi + 0x1c]
mov ecx, 1
xor esi, esi
mov dword [ebp - 0x224], ecx
nop
test ecx, ecx
je 0x49d094
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x49d08e
mov ecx, dword [ebp - 0x230]
push esi
mov eax, dword [ecx]
call dword [eax + 8]
inc esi
test eax, eax
jne 0x49d064
mov dword [ebp - 0x224], eax
mov edi, dword [ebp - 0x230]
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_GetMessageW]
mov ecx, dword [ebp - 0x224]
cmp eax, 0xffffffff
je 0x49d060
test eax, eax
je 0x49d118
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 4]
test eax, eax
jne 0x49d0fd
cmp dword [ebp - 0x234], eax
je 0x49d0ef
cmp dword [edi + 0x20], 0x20a
jne 0x49d0ef
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov dword [edi + 0x1c], eax
push ebx
call dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x224]
test eax, eax
je 0x49d060
jmp 0x49d051
mov ebx, dword [edi + 0x24]
lea ecx, [ebp - 0x270]
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x230], ebx
call fcn.00403060
jmp 0x49d1ae
mov dword [0x505d1c], 1
cmp dword [edi - 0xc], 0
jl 0x49d187
push 0x4d9340
push edi
call fcn.004a19ec
add esp, 8
test eax, eax
je 0x49d15f
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49d180
cmp dword [edi - 0xc], 0
jl 0x49d187
push 0x4d9348
push edi
call fcn.004a19ec
add esp, 8
test eax, eax
je 0x49d187
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x49d187
mov esi, 1
jmp 0x49d189
xor esi, esi
push 0x4e57a0
push str.start
push 0x4d89a8
call fcn.004787c0
push esi
call fcn.0049a710
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 0x230], ebx
mov byte [ebp - 4], 5
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x49d1ca
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x244]
mov byte [ebp - 4], 4
test esi, esi
je 0x49d265
mov edi, dword [ebp - 0x240]
cmp esi, edi
je 0x49d20d
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d200
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x49d1e6
mov esi, dword [ebp - 0x244]
mov eax, dword [ebp - 0x23c]
sub eax, esi
sar eax, 2
lea ecx, [eax*4]
mov eax, esi
cmp ecx, 0x1000
jb 0x49d23d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49d34a
push ecx
push esi
call fcn.0049f9b7
add esp, 8
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov edx, dword [ebp - 0x228]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d287
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x260]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x49d2f5
mov ebx, dword [ebp - 0x25c]
xor esi, esi
test ebx, ebx
je 0x49d2e6
mov edx, dword [edi + esi*8 + 4]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d2c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + esi*8]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d2db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, ebx
jb 0x49d2a4
mov edi, dword [ebp - 0x260]
push edi
call fcn.004a461c
mov ebx, dword [ebp - 0x230]
add esp, 4
mov eax, dword [ebp - 0x264]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x49d313
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049fe2d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404bc0
push 0x80070057
call fcn.00404bc0
call fcn.00403ba0
call fcn.004a453f
int3