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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3635
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4fe0a8]
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.00420470
add esp, 4
call fcn.004713e0
push 0
test eax, eax
je 0x499b28
push 0x4d6020
push str.CADWindows7XP
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x49a7b5
push edi
lea ecx, [ebp - 0x264]
call fcn.0048e9c0
push ecx
mov esi, esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], esi
call fcn.00404d50
test eax, eax
je 0x49a7d1
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.004046b0
test al, al
jne 0x499b7f
push 4
push str._pid
mov ecx, esi
call fcn.00404980
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0
call fcn.0048fbf0
or ebx, 0xffffffff
test eax, eax
je 0x499be4
push ecx
mov ecx, esp
push str._pid
call fcn.00404a80
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x264]
call fcn.0048fc80
push eax
mov ecx, 0x501ce4
mov byte [ebp - 4], 2
call fcn.00403180
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 0x499be4
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.0049edc0
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.00404d50
test eax, eax
je 0x49a7d1
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.004046b0
test al, al
jne 0x499c7c
test esi, esi
jne 0x499c56
xor ecx, ecx
jmp 0x499c6f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499c60
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x228]
call fcn.00404980
mov eax, dword [ebp - 0x228]
mov byte [ebp - 4], 4
cmp dword [eax - 4], 1
jle 0x499ca0
push dword [eax - 0xc]
lea ecx, [ebp - 0x228]
call fcn.004047e0
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.004a6ca5
mov edx, eax
add esp, 8
test edx, edx
js 0x49a7db
mov ecx, dword [ebp - 0x228]
cmp edx, dword [ecx - 8]
jg 0x49a7db
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.00404d50
mov ecx, eax
test ecx, ecx
je 0x49a7d1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x4e6e30
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call fcn.004046b0
test al, al
jne 0x499d44
push 1
push 0x4e6e30
lea ecx, [ebp - 0x21c]
call fcn.00404980
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.004730b0
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 0x499d86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x501ce4]
cmp dword [eax - 0xc], 0
jne 0x499dc4
mov edx, dword [ebp - 0x240]
mov esi, dword [ebp - 0x244]
sub edx, esi
sar edx, 2
cmp edx, 3
jb 0x499dba
lea eax, [esi + 8]
mov ecx, 0x501ce4
push eax
call fcn.00403180
mov eax, dword [0x501ce4]
cmp dword [eax - 0xc], 0
je 0x499eb2
lea eax, [ebp - 0x21c]
push eax
call fcn.004748d0
add esp, 4
push dword [ebp - 0x21c]
mov byte [ebp - 4], 8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x499e0e
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 0x499e0e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x238]
push eax
call fcn.0046f550
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 [0x501ce4]
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 0x499e68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x499e91
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x499e91
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x499e91
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 0x499eb2
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 0x499f3d
mov eax, dword [esi + 0xc]
sub eax, 0x10
push eax
call fcn.00404490
add esp, 4
cmp dword [eax + 4], 0
lea esi, [eax + 0x10]
jl 0x499f26
push str.SMDB
push esi
call fcn.0049ef9c
add esp, 8
test eax, eax
je 0x499efb
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x499f1c
cmp dword [esi - 0xc], 0
jl 0x499f26
push 0x4e82f8
push esi
call fcn.0049ef9c
add esp, 8
test eax, eax
je 0x499f26
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x499f26
mov dword [ebp - 0x248], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x499f3d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00404d50
test eax, eax
je 0x49a7d1
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.004046b0
test al, al
jne 0x499f9c
test edi, edi
jne 0x499f76
xor ecx, ecx
jmp 0x499f8f
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499f80
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x21c]
call fcn.00404980
mov edi, dword [ebp - 0x21c]
mov byte [ebp - 4], 0xb
cmp dword [edi - 0xc], 0
jl 0x499fef
push 0x4d60a0
push edi
call fcn.0049ef9c
add esp, 8
test eax, eax
je 0x499fc7
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x499fe8
cmp dword [edi - 0xc], 0
jl 0x499fef
push 0x4d60a8
push edi
call fcn.0049ef9c
add esp, 8
test eax, eax
je 0x499fef
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x499fef
mov eax, 1
jmp 0x499ff1
xor eax, eax
mov dword [0x501ce0], eax
cmp dword [edi - 0xc], 0
jl 0x49a3c8
push 0x4d60b0
push edi
call fcn.0049ef9c
add esp, 8
test eax, eax
je 0x49a01b
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49a048
cmp dword [edi - 0xc], 0
jl 0x49a3c8
push 0x4d60b8
push edi
call fcn.0049ef9c
add esp, 8
test eax, eax
je 0x49a37e
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x49a37e
push ecx
mov esi, esp
mov dword [ebp - 0x234], esi
call fcn.00404d50
test eax, eax
je 0x49a7d1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x4d60b8
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.004046b0
test al, al
jne 0x49a08c
push 2
push 0x4d60b8
mov ecx, esi
call fcn.00404980
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x264]
call fcn.0048fc80
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 0xd
cmp dword [eax - 0xc], 0
jne 0x49a102
push ecx
mov ecx, esp
push 0x4d60b0
call fcn.00404a80
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x264]
call fcn.0048fc80
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xe
call fcn.00403180
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 0x49a102
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 0x49a322
xor esi, esi
nop dword [eax + eax]
mov eax, dword [ebp - 0x220]
test esi, esi
js 0x49a170
cmp esi, dword [eax - 0xc]
jg 0x49a170
lea ecx, [esi + esi]
add eax, ecx
mov dword [ebp - 0x224], ecx
push 0x4e71e4
push eax
call fcn.0049ef9c
mov ecx, dword [ebp - 0x224]
mov ebx, eax
mov eax, dword [ebp - 0x220]
add esp, 8
test ebx, ebx
jne 0x49a15f
mov edx, dword [eax - 0xc]
jmp 0x49a17e
sub ebx, eax
mov dword [ebp - 0x224], ecx
sar ebx, 1
cmp ebx, 0xffffffff
jne 0x49a1b3
jmp 0x49a173
lea ecx, [esi + esi]
mov edx, dword [eax - 0xc]
test esi, esi
js 0x49a316
cmp esi, edx
jg 0x49a316
add eax, ecx
push 0x4ea888
push eax
call fcn.0049ef9c
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x49a310
mov eax, dword [ebp - 0x220]
sub ebx, eax
sar ebx, 1
cmp ebx, 0xffffffff
je 0x49a316
xor esi, esi
test ebx, ebx
cmovns esi, ebx
mov dword [ebp - 0x234], esi
cmp esi, dword [eax - 0xc]
jl 0x49a1d9
add eax, 0xfffffff0
push eax
call fcn.00404490
add esp, 4
lea esi, [eax + 0x10]
jmp 0x49a2ab
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x49a1ff
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x49a1ff
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x22c], eax
jmp 0x49a227
call fcn.00404d50
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 0x49a7d1
test eax, eax
jne 0x49a233
test esi, esi
jne 0x49a7db
mov eax, dword [ecx]
push 2
push esi
call dword [eax]
test eax, eax
je 0x49a7e5
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x234]
test eax, eax
js 0x49a7db
cmp eax, dword [esi - 8]
jg 0x49a7db
lea ecx, [eax + eax]
mov dword [esi - 0xc], eax
xor eax, eax
mov word [ecx + esi], ax
test ecx, ecx
je 0x49a2ab
test esi, esi
je 0x49a29b
mov eax, dword [ebp - 0x224]
push ecx
test eax, eax
je 0x49a287
push eax
push esi
call fcn.0049e840
add esp, 0xc
jmp 0x49a2ab
push 0
push esi
call fcn.0049edc0
add esp, 0xc
cmp dword [ebp - 0x22c], 0
jne 0x49a2ab
call fcn.004a1bb9
mov dword [eax], 0x16
call fcn.004a1adf
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49a2be
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 0x49a2f9
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
mov esi, dword [ebp - 0x22c]
test eax, eax
jg 0x49a120
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49a120
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49a310
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.00404490
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 0xf
call fcn.00492cb0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 4]
call fcn.004562b0
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 0x49a37e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi - 0xc], 0
jl 0x49a3c8
push 0x4d60c0
push edi
call fcn.0049ef9c
add esp, 8
test eax, eax
je 0x49a3a3
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49a5d4
cmp dword [edi - 0xc], 0
jl 0x49a3c8
push 0x4d60c8
push edi
call fcn.0049ef9c
add esp, 8
test eax, eax
je 0x49a3c8
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49a5d4
cmp dword [ebp - 0x248], 0
jne 0x49a5d4
cmp dword [0x501ce0], 0
mov dword [0x501cdc], 0
jne 0x49a3f2
call fcn.0046fda0
mov dword [0x501ce0], eax
lea eax, [ebp - 0x270]
push eax
call fcn.00492cb0
mov ecx, eax
call fcn.0044fe20
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 0x49a444
lea edi, [ebx + 1]
mov ecx, dword [eax]
cmp ecx, 0xa78
jne 0x49a42e
mov ebx, edi
jmp 0x49a437
cmp ecx, 0xa79
cmove esi, edi
add eax, 4
cmp eax, edx
jne 0x49a420
mov edi, dword [ebp - 0x21c]
call fcn.00474260
test eax, eax
je 0x49a4a3
test esi, esi
je 0x49a45f
test ebx, ebx
jne 0x49a45f
call fcn.004913c0
cmp eax, 2
je 0x49a4b0
push 0x4e2530
push str.start
push 0x4d59a8
call fcn.00472660
add esp, 0xc
cmp dword [0x501cd0], 0
jne 0x49a4d3
push 0x128
call fcn.0049cf37
add esp, 4
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0x11
test eax, eax
je 0x49a4c8
mov ecx, eax
call fcn.00493b90
jmp 0x49a4ca
test ebx, ebx
je 0x49a45f
test esi, esi
jne 0x49a45f
call fcn.00490290
xor ebx, ebx
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x230], ebx
call fcn.00402fd0
jmp 0x49a64e
xor eax, eax
mov byte [ebp - 4], 0x10
mov dword [0x501cd0], eax
call fcn.00494170
call fcn.00471440
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 0x49a534
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x49a52e
mov ecx, dword [ebp - 0x230]
push esi
mov eax, dword [ecx]
call dword [eax + 8]
inc esi
test eax, eax
jne 0x49a504
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 0x49a500
test eax, eax
je 0x49a5b8
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 4]
test eax, eax
jne 0x49a59d
cmp dword [ebp - 0x234], eax
je 0x49a58f
cmp dword [edi + 0x20], 0x20a
jne 0x49a58f
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 0x49a500
jmp 0x49a4f1
mov ebx, dword [edi + 0x24]
lea ecx, [ebp - 0x270]
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x230], ebx
call fcn.00402fd0
jmp 0x49a64e
mov dword [0x501cdc], 1
cmp dword [edi - 0xc], 0
jl 0x49a627
push 0x4d60d0
push edi
call fcn.0049ef9c
add esp, 8
test eax, eax
je 0x49a5ff
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49a620
cmp dword [edi - 0xc], 0
jl 0x49a627
push 0x4d60d8
push edi
call fcn.0049ef9c
add esp, 8
test eax, eax
je 0x49a627
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x49a627
mov esi, 1
jmp 0x49a629
xor esi, esi
push 0x4e2530
push str.start
push 0x4d59a8
call fcn.00472730
push esi
call fcn.00497df0
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 0x49a66a
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 0x49a705
mov edi, dword [ebp - 0x240]
cmp esi, edi
je 0x49a6ad
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49a6a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x49a686
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 0x49a6dd
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49a7ea
push ecx
push esi
call fcn.0049cf67
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 0x49a727
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 0x49a795
mov ebx, dword [ebp - 0x25c]
xor esi, esi
test ebx, ebx
je 0x49a786
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 0x49a760
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 0x49a77b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, ebx
jb 0x49a744
mov edi, dword [ebp - 0x260]
push edi
call fcn.004a1bcc
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 0x49a7b3
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.0049d3dd
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404b30
push 0x80070057
call fcn.00404b30
call fcn.00403b10
call fcn.004a1aef
int3