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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6975
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.00473a20
push 0
test eax, eax
je 0x49c998
push 0x4d9260
push str.CADWindows7XP
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x49d625
push edi
lea ecx, [ebp - 0x264]
call fcn.004915f0
push ecx
mov esi, esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], esi
call fcn.00404de0
test eax, eax
je 0x49d641
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 0x49c9ef
push 4
push str._pid
mov ecx, esi
call fcn.00404a10
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0
call fcn.00492820
or ebx, 0xffffffff
test eax, eax
je 0x49ca54
push ecx
mov ecx, esp
push str._pid
call fcn.00404b10
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x264]
call fcn.004928b0
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 0x49ca54
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.004a1c30
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 0x49d641
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 0x49caec
test esi, esi
jne 0x49cac6
xor ecx, ecx
jmp 0x49cadf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49cad0
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 0x49cb10
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.004a9b15
mov edx, eax
add esp, 8
test edx, edx
js 0x49d64b
mov ecx, dword [ebp - 0x228]
cmp edx, dword [ecx - 8]
jg 0x49d64b
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 0x49d641
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x4ea0ec
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call fcn.00404740
test al, al
jne 0x49cbb4
push 1
push 0x4ea0ec
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.004756f0
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 0x49cbf6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x505d24]
cmp dword [eax - 0xc], 0
jne 0x49cc34
mov edx, dword [ebp - 0x240]
mov esi, dword [ebp - 0x244]
sub edx, esi
sar edx, 2
cmp edx, 3
jb 0x49cc2a
lea eax, [esi + 8]
mov ecx, 0x505d24
push eax
call fcn.00403210
mov eax, dword [0x505d24]
cmp dword [eax - 0xc], 0
je 0x49cd22
lea eax, [ebp - 0x21c]
push eax
call fcn.00476f00
add esp, 4
push dword [ebp - 0x21c]
mov byte [ebp - 4], 8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49cc7e
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 0x49cc7e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x238]
push eax
call fcn.00471ba0
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 + 0x10c]
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 0x49ccd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x49cd01
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x49cd01
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x49cd01
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 0x49cd22
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 0x49cdad
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 0x49cd96
push str.SMDB
push esi
call fcn.004a1e0c
add esp, 8
test eax, eax
je 0x49cd6b
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49cd8c
cmp dword [esi - 0xc], 0
jl 0x49cd96
push 0x4eb5b8
push esi
call fcn.004a1e0c
add esp, 8
test eax, eax
je 0x49cd96
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x49cd96
mov dword [ebp - 0x248], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49cdad
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00404de0
test eax, eax
je 0x49d641
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 0x49ce0c
test edi, edi
jne 0x49cde6
xor ecx, ecx
jmp 0x49cdff
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49cdf0
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 0x49ce5f
push 0x4d92e0
push edi
call fcn.004a1e0c
add esp, 8
test eax, eax
je 0x49ce37
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49ce58
cmp dword [edi - 0xc], 0
jl 0x49ce5f
push 0x4d92e8
push edi
call fcn.004a1e0c
add esp, 8
test eax, eax
je 0x49ce5f
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x49ce5f
mov eax, 1
jmp 0x49ce61
xor eax, eax
mov dword [0x505d20], eax
cmp dword [edi - 0xc], 0
jl 0x49d238
push 0x4d92f0
push edi
call fcn.004a1e0c
add esp, 8
test eax, eax
je 0x49ce8b
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49ceb8
cmp dword [edi - 0xc], 0
jl 0x49d238
push 0x4d92f8
push edi
call fcn.004a1e0c
add esp, 8
test eax, eax
je 0x49d1ee
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x49d1ee
push ecx
mov esi, esp
mov dword [ebp - 0x234], esi
call fcn.00404de0
test eax, eax
je 0x49d641
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x4d92f8
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.00404740
test al, al
jne 0x49cefc
push 2
push 0x4d92f8
mov ecx, esi
call fcn.00404a10
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x264]
call fcn.004928b0
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 0xd
cmp dword [eax - 0xc], 0
jne 0x49cf72
push ecx
mov ecx, esp
push 0x4d92f0
call fcn.00404b10
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x264]
call fcn.004928b0
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 0x49cf72
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 0x49d192
xor esi, esi
nop dword [eax + eax]
mov eax, dword [ebp - 0x220]
test esi, esi
js 0x49cfe0
cmp esi, dword [eax - 0xc]
jg 0x49cfe0
lea ecx, [esi + esi]
add eax, ecx
mov dword [ebp - 0x224], ecx
push 0x4ea578
push eax
call fcn.004a1e0c
mov ecx, dword [ebp - 0x224]
mov ebx, eax
mov eax, dword [ebp - 0x220]
add esp, 8
test ebx, ebx
jne 0x49cfcf
mov edx, dword [eax - 0xc]
jmp 0x49cfee
sub ebx, eax
mov dword [ebp - 0x224], ecx
sar ebx, 1
cmp ebx, 0xffffffff
jne 0x49d023
jmp 0x49cfe3
lea ecx, [esi + esi]
mov edx, dword [eax - 0xc]
test esi, esi
js 0x49d186
cmp esi, edx
jg 0x49d186
add eax, ecx
push 0x4edb44
push eax
call fcn.004a1e0c
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x49d180
mov eax, dword [ebp - 0x220]
sub ebx, eax
sar ebx, 1
cmp ebx, 0xffffffff
je 0x49d186
xor esi, esi
test ebx, ebx
cmovns esi, ebx
mov dword [ebp - 0x234], esi
cmp esi, dword [eax - 0xc]
jl 0x49d049
add eax, 0xfffffff0
push eax
call fcn.00404520
add esp, 4
lea esi, [eax + 0x10]
jmp 0x49d11b
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x49d06f
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x49d06f
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x22c], eax
jmp 0x49d097
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 0x49d641
test eax, eax
jne 0x49d0a3
test esi, esi
jne 0x49d64b
mov eax, dword [ecx]
push 2
push esi
call dword [eax]
test eax, eax
je 0x49d655
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x234]
test eax, eax
js 0x49d64b
cmp eax, dword [esi - 8]
jg 0x49d64b
lea ecx, [eax + eax]
mov dword [esi - 0xc], eax
xor eax, eax
mov word [ecx + esi], ax
test ecx, ecx
je 0x49d11b
test esi, esi
je 0x49d10b
mov eax, dword [ebp - 0x224]
push ecx
test eax, eax
je 0x49d0f7
push eax
push esi
call fcn.004a16b0
add esp, 0xc
jmp 0x49d11b
push 0
push esi
call fcn.004a1c30
add esp, 0xc
cmp dword [ebp - 0x22c], 0
jne 0x49d11b
call fcn.004a4a29
mov dword [eax], 0x16
call fcn.004a494f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49d12e
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 0x49d169
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
mov esi, dword [ebp - 0x22c]
test eax, eax
jg 0x49cf90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49cf90
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d180
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.004958e0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 4]
call fcn.004574f0
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 0x49d1ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi - 0xc], 0
jl 0x49d238
push 0x4d9300
push edi
call fcn.004a1e0c
add esp, 8
test eax, eax
je 0x49d213
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49d444
cmp dword [edi - 0xc], 0
jl 0x49d238
push 0x4d9308
push edi
call fcn.004a1e0c
add esp, 8
test eax, eax
je 0x49d238
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49d444
cmp dword [ebp - 0x248], 0
jne 0x49d444
cmp dword [0x505d20], 0
mov dword [0x505d1c], 0
jne 0x49d262
call fcn.004723f0
mov dword [0x505d20], eax
lea eax, [ebp - 0x270]
push eax
call fcn.004958e0
mov ecx, eax
call fcn.0044fea0
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 0x49d2b4
lea edi, [ebx + 1]
mov ecx, dword [eax]
cmp ecx, 0xa78
jne 0x49d29e
mov ebx, edi
jmp 0x49d2a7
cmp ecx, 0xa79
cmove esi, edi
add eax, 4
cmp eax, edx
jne 0x49d290
mov edi, dword [ebp - 0x21c]
call fcn.00476890
test eax, eax
je 0x49d313
test esi, esi
je 0x49d2cf
test ebx, ebx
jne 0x49d2cf
call fcn.00493ff0
cmp eax, 2
je 0x49d320
push 0x4e5770
push str.start
push 0x4d89a8
call fcn.00474ca0
add esp, 0xc
cmp dword [0x505d10], 0
jne 0x49d343
push 0x128
call fcn.0049fda7
add esp, 4
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0x11
test eax, eax
je 0x49d338
mov ecx, eax
call fcn.004967c0
jmp 0x49d33a
test ebx, ebx
je 0x49d2cf
test esi, esi
jne 0x49d2cf
call fcn.00492ec0
xor ebx, ebx
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x230], ebx
call fcn.00403060
jmp 0x49d4be
xor eax, eax
mov byte [ebp - 4], 0x10
mov dword [0x505d10], eax
call fcn.00496da0
call fcn.00473a80
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 0x49d3a4
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x49d39e
mov ecx, dword [ebp - 0x230]
push esi
mov eax, dword [ecx]
call dword [eax + 8]
inc esi
test eax, eax
jne 0x49d374
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 0x49d370
test eax, eax
je 0x49d428
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 4]
test eax, eax
jne 0x49d40d
cmp dword [ebp - 0x234], eax
je 0x49d3ff
cmp dword [edi + 0x20], 0x20a
jne 0x49d3ff
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 0x49d370
jmp 0x49d361
mov ebx, dword [edi + 0x24]
lea ecx, [ebp - 0x270]
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x230], ebx
call fcn.00403060
jmp 0x49d4be
mov dword [0x505d1c], 1
cmp dword [edi - 0xc], 0
jl 0x49d497
push 0x4d9310
push edi
call fcn.004a1e0c
add esp, 8
test eax, eax
je 0x49d46f
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49d490
cmp dword [edi - 0xc], 0
jl 0x49d497
push 0x4d9318
push edi
call fcn.004a1e0c
add esp, 8
test eax, eax
je 0x49d497
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x49d497
mov esi, 1
jmp 0x49d499
xor esi, esi
push 0x4e5770
push str.start
push 0x4d89a8
call fcn.00474d70
push esi
call fcn.0049aa20
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 0x49d4da
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 0x49d575
mov edi, dword [ebp - 0x240]
cmp esi, edi
je 0x49d51d
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d510
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x49d4f6
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 0x49d54d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49d65a
push ecx
push esi
call fcn.0049fdd7
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 0x49d597
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 0x49d605
mov ebx, dword [ebp - 0x25c]
xor esi, esi
test ebx, ebx
je 0x49d5f6
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 0x49d5d0
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 0x49d5eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, ebx
jb 0x49d5b4
mov edi, dword [ebp - 0x260]
push edi
call fcn.004a4a3c
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 0x49d623
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.004a024d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404bc0
push 0x80070057
call fcn.00404bc0
call fcn.00403ba0
call fcn.004a495f
int3