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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d48f5
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5000a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 1
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x23c], eax
call fcn.0041ab40
add esp, 4
lea ecx, [ebp - 0x264]
push 0
push esi
call fcn.00490970
push ecx
mov esi, esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], esi
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x49a7c2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push str._pid
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404690
test al, al
jne 0x499a64
push 4
push str._pid
mov ecx, esi
call fcn.00404960
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0
call fcn.00491ba0
or edi, 0xffffffff
test eax, eax
je 0x499b0a
push ecx
mov esi, esp
mov dword [ebp - 0x234], esi
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x49a7c2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push str._pid
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00404690
test al, al
jne 0x499ac4
push 4
push str._pid
mov ecx, esi
call fcn.00404960
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0
push eax
lea ecx, [ebp - 0x264]
call fcn.00491c30
push eax
mov ecx, 0x503b60
mov byte [ebp - 4], 3
call fcn.00403180
mov edx, dword [ebp - 0x230]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x499b0a
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.0049edd0
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.00404d30
test eax, eax
je 0x49a7c2
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x22c], eax
push esi
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 4
call fcn.00404690
test al, al
jne 0x499b9f
test esi, esi
jne 0x499b7e
xor ecx, ecx
jmp 0x499b92
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499b83
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x22c]
call fcn.00404960
mov eax, dword [ebp - 0x22c]
mov byte [ebp - 4], 5
cmp dword [eax - 4], 1
jle 0x499bc3
push dword [eax - 0xc]
lea ecx, [ebp - 0x22c]
call fcn.004047c0
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [ebp - 0x22c]
push dword [eax - 8]
push eax
call fcn.004a8382
mov edx, eax
add esp, 8
test edx, edx
js 0x49a7e0
mov ecx, dword [ebp - 0x22c]
cmp edx, dword [ecx - 8]
jg 0x49a7e0
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x230], ecx
mov word [eax + edx*2], cx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x244], ecx
mov byte [ebp - 4], 6
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x49a7cc
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x4e9b1c
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 7
call fcn.00404690
test al, al
jne 0x499c69
push 1
push 0x4e9b1c
lea ecx, [ebp - 0x21c]
call fcn.00404960
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00475c00
mov edx, dword [ebp - 0x21c]
add esp, 0xc
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x499cab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x503b60]
cmp dword [eax - 0xc], 0
jne 0x499ce9
mov edx, dword [ebp - 0x248]
mov esi, dword [ebp - 0x24c]
sub edx, esi
sar edx, 2
cmp edx, 3
jb 0x499cdf
lea eax, [esi + 8]
mov ecx, 0x503b60
push eax
call fcn.00403180
mov eax, dword [0x503b60]
cmp dword [eax - 0xc], 0
je 0x499dd9
lea eax, [ebp - 0x21c]
push eax
call fcn.00476d50
add esp, 4
push dword [ebp - 0x21c]
mov byte [ebp - 4], 9
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x499d33
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 0x499d33
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 - 0x224]
push edx
mov byte [ebp - 4], 0xa
mov eax, dword [ecx]
mov eax, dword [eax + 0xec]
call eax
push dword [ebp - 0x21c]
push dword [0x503b60]
push str.DPid
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x224]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x499d8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x499db8
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x499db8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x499db8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x499dd9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x248]
mov esi, dword [ebp - 0x24c]
sub eax, esi
sar eax, 2
cmp eax, 4
jb 0x499e64
mov eax, dword [esi + 0xc]
sub eax, 0x10
push eax
call fcn.00404470
add esp, 4
cmp dword [eax + 4], 0
lea esi, [eax + 0x10]
jl 0x499e4d
push str.SMDB
push esi
call fcn.0049efac
add esp, 8
test eax, eax
je 0x499e22
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x499e43
cmp dword [esi - 0xc], 0
jl 0x499e4d
push 0x4eb264
push esi
call fcn.0049efac
add esp, 8
test eax, eax
je 0x499e4d
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x499e4d
mov dword [ebp - 0x230], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x499e64
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x49a7c2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x240], eax
mov esi, dword [ebp - 0x228]
lea ecx, [ebp - 0x240]
push esi
mov byte [ebp - 4], 0xb
call fcn.00404690
test al, al
jne 0x499ecc
test esi, esi
jne 0x499ea5
xor ecx, ecx
jmp 0x499ebf
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499eb0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x240]
call fcn.00404960
mov edi, dword [ebp - 0x240]
mov byte [ebp - 4], 0xc
cmp dword [edi - 0xc], 0
jl 0x499f1f
push 0x4d7e08
push edi
call fcn.0049efac
add esp, 8
test eax, eax
je 0x499ef7
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x499f18
cmp dword [edi - 0xc], 0
jl 0x499f1f
push 0x4d7e10
push edi
call fcn.0049efac
add esp, 8
test eax, eax
je 0x499f1f
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x499f1f
mov eax, 1
jmp 0x499f21
xor eax, eax
mov dword [0x503b5c], eax
cmp dword [edi - 0xc], 0
jl 0x49a373
push 0x4d7e18
push edi
call fcn.0049efac
add esp, 8
test eax, eax
je 0x499f4b
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x499f78
cmp dword [edi - 0xc], 0
jl 0x49a373
push 0x4d7e20
push edi
call fcn.0049efac
add esp, 8
test eax, eax
je 0x49a329
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x49a329
push ecx
mov esi, esp
mov dword [ebp - 0x234], esi
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x49a7c2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0x4d7e20
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.00404690
test al, al
jne 0x499fbe
push 2
push 0x4d7e20
mov ecx, esi
call fcn.00404960
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x264]
call fcn.00491c30
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 0xe
cmp dword [eax - 0xc], 0
jne 0x49a076
push ecx
mov esi, esp
mov dword [ebp - 0x234], esi
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x49a7d6
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0x4d7e18
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.00404690
test al, al
jne 0x49a02e
push 2
push 0x4d7e18
mov ecx, esi
call fcn.00404960
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x264]
call fcn.00491c30
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x10
call fcn.00403180
mov edx, dword [ebp - 0x224]
or eax, 0xffffffff
mov byte [ebp - 4], 0xe
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49a076
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 0x49a299
xor esi, esi
nop dword [eax]
mov eax, dword [ebp - 0x220]
test esi, esi
js 0x49a0e0
cmp esi, dword [eax - 0xc]
jg 0x49a0e0
lea ecx, [esi + esi]
add eax, ecx
mov dword [ebp - 0x228], ecx
push 0x4e9f30
push eax
call fcn.0049efac
mov edx, dword [ebp - 0x228]
mov ecx, eax
mov eax, dword [ebp - 0x220]
add esp, 8
test ecx, ecx
jne 0x49a0cf
mov ecx, dword [eax - 0xc]
jmp 0x49a0ee
sub ecx, eax
sar ecx, 1
mov dword [ebp - 0x224], ecx
cmp ecx, 0xffffffff
jne 0x49a129
jmp 0x49a0e3
lea edx, [esi + esi]
mov ecx, dword [eax - 0xc]
test esi, esi
js 0x49a290
cmp esi, ecx
jg 0x49a290
add eax, edx
push 0x4ebe20
push eax
call fcn.0049efac
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x49a28a
mov eax, dword [ebp - 0x220]
sub ecx, eax
sar ecx, 1
mov dword [ebp - 0x224], ecx
cmp ecx, 0xffffffff
je 0x49a290
xor esi, esi
test ecx, ecx
cmovns esi, ecx
mov dword [ebp - 0x234], esi
cmp esi, dword [eax - 0xc]
jl 0x49a14f
add eax, 0xfffffff0
push eax
call fcn.00404470
add esp, 4
lea esi, [eax + 0x10]
jmp 0x49a227
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x49a177
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x49a177
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x21c], eax
jmp 0x49a1a1
call fcn.00404d30
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x21c], eax
test ecx, ecx
je 0x49a7c2
test eax, eax
jne 0x49a1ad
test esi, esi
jne 0x49a7e0
mov eax, dword [ecx]
push 2
push esi
mov eax, dword [eax]
call eax
test eax, eax
je 0x49a7ea
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x234]
test eax, eax
js 0x49a7e0
cmp eax, dword [esi - 8]
jg 0x49a7e0
lea ecx, [eax + eax]
mov dword [esi - 0xc], eax
xor eax, eax
mov word [ecx + esi], ax
test ecx, ecx
je 0x49a227
test esi, esi
je 0x49a217
mov eax, dword [ebp - 0x228]
push ecx
test eax, eax
je 0x49a203
push eax
push esi
call fcn.0049e850
add esp, 0xc
jmp 0x49a227
push 0
push esi
call fcn.0049edd0
add esp, 0xc
cmp dword [ebp - 0x21c], 0
jne 0x49a227
call fcn.004a1bc9
mov dword [eax], 0x16
call fcn.004a1aef
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49a23a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x224]
lea edx, [esi - 0x10]
mov eax, dword [ebp - 0x220]
inc ecx
mov dword [ebp - 0x224], ecx
cmp ecx, dword [eax - 0xc]
jge 0x49a275
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
mov esi, ecx
test eax, eax
jg 0x49a090
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49a090
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49a28a
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]
push ecx
mov esi, esp
mov dword [ebp - 0x234], esp
mov dword [ebp - 0x224], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
push eax
call fcn.00404470
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [0x503b48]
mov byte [ebp - 4], 0x11
test eax, eax
jne 0x49a2fb
push 0x180
call fcn.0049cf47
add esp, 4
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 0x12
test eax, eax
je 0x49a2f0
mov ecx, eax
call fcn.0044f6c0
jmp 0x49a2f2
xor eax, eax
mov byte [ebp - 4], 0x11
mov dword [0x503b48], eax
lea ecx, [eax + 4]
mov byte [ebp - 4], 0xe
call fcn.00456870
mov edx, dword [ebp - 0x220]
or eax, 0xffffffff
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49a329
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi - 0xc], 0
jl 0x49a373
push 0x4d7e28
push edi
call fcn.0049efac
add esp, 8
test eax, eax
je 0x49a34e
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49a4e3
cmp dword [edi - 0xc], 0
jl 0x49a373
push 0x4d7e30
push edi
call fcn.0049efac
add esp, 8
test eax, eax
je 0x49a373
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49a4e3
cmp dword [ebp - 0x230], 0
jne 0x49a4e3
cmp dword [0x503b5c], 0
mov dword [0x503b58], 0
jne 0x49a39d
call fcn.00472030
mov dword [0x503b5c], eax
push 0x4e524c
push str.start
push 0x4d70f0
call fcn.00474480
add esp, 0xc
cmp dword [0x503b4c], 0
jne 0x49a3ec
push 0x120
call fcn.0049cf47
add esp, 4
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0x15
test eax, eax
je 0x49a3e1
mov ecx, eax
call fcn.00493720
jmp 0x49a3e3
xor eax, eax
mov byte [ebp - 4], 0xc
mov dword [0x503b4c], eax
call fcn.00493ce0
mov edi, dword [ebp - 0x23c]
lea eax, [edi + 0x1c]
mov dword [ebp - 0x21c], eax
mov edx, 1
xor esi, esi
mov dword [ebp - 0x228], edx
nop dword [eax]
test edx, edx
je 0x49a458
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x49a44c
mov ecx, dword [ebp - 0x23c]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
inc esi
test eax, eax
mov eax, dword [ebp - 0x21c]
jne 0x49a414
mov dword [ebp - 0x228], 0
jmp 0x49a452
mov eax, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x23c]
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov edx, dword [ebp - 0x228]
mov ecx, eax
mov eax, dword [ebp - 0x21c]
cmp ecx, 0xffffffff
je 0x49a410
test ecx, ecx
je 0x49a4cf
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x21c]
mov eax, dword [eax + 4]
call eax
test eax, eax
jne 0x49a4a7
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_TranslateMessage]
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x21c]
mov eax, dword [eax + 0xc]
call eax
mov edx, dword [ebp - 0x228]
test eax, eax
mov eax, dword [ebp - 0x21c]
je 0x49a410
jmp 0x49a400
mov ecx, dword [edi + 0x24]
mov edi, dword [ebp - 0x240]
mov dword [ebp - 0x230], ecx
jmp 0x49a631
mov dword [0x503b58], 1
cmp dword [edi - 0xc], 0
jl 0x49a53b
push 0x4d7e38
push edi
call fcn.0049efac
add esp, 8
test eax, eax
je 0x49a50e
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x49a52f
cmp dword [edi - 0xc], 0
jl 0x49a53b
push 0x4d7e40
push edi
call fcn.0049efac
add esp, 8
test eax, eax
je 0x49a53b
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x49a53b
mov dword [ebp - 0x230], 1
jmp 0x49a545
mov dword [ebp - 0x230], 0
push 0x4e524c
push str.start
push 0x4d70f0
call fcn.00474480
movaps xmm0, xmmword [0x4d6b10]
sub esp, 0x1c
movaps xmm1, xmmword [0x4d6b00]
mov eax, esp
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
push 0
movups xmmword [eax], xmm0
push ecx
movq xmm0, qword [ebp - 0x26c]
mov esi, esp
movups xmmword [eax + 0x10], xmm1
mov dword [ebp - 0x224], esi
movq qword [eax + 0x20], xmm0
mov eax, dword [0x503b60]
add eax, 0xfffffff0
mov dword [ebp - 0x234], esp
push eax
call fcn.00404470
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [0x503b48]
mov byte [ebp - 4], 0x13
test eax, eax
jne 0x49a5f7
push 0x180
call fcn.0049cf47
add esp, 4
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 0x14
test eax, eax
je 0x49a5ec
mov ecx, eax
call fcn.0044f6c0
jmp 0x49a5ee
xor eax, eax
mov byte [ebp - 4], 0x13
mov dword [0x503b48], eax
push dword [0x503b5c]
mov ecx, eax
push dword [0x503b58]
mov byte [ebp - 4], 0xc
call fcn.0044fa30
test eax, eax
js 0x49a627
cmp dword [ebp - 0x230], 0
je 0x49a627
call fcn.00492840
mov ecx, eax
call fcn.00451290
mov dword [ebp - 0x230], 0
mov byte [ebp - 4], 6
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x49a64d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x24c]
mov byte [ebp - 4], 5
test esi, esi
je 0x49a6ef
mov edi, dword [ebp - 0x248]
cmp esi, edi
je 0x49a697
nop dword [eax]
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49a68a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x49a670
mov esi, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x244]
sub eax, esi
sar eax, 2
lea ecx, [eax*4]
mov eax, esi
cmp ecx, 0x1000
jb 0x49a6c7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49a7ef
push ecx
push esi
call fcn.0049cf77
add esp, 8
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov edx, dword [ebp - 0x22c]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49a711
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 0x49a783
mov eax, dword [ebp - 0x25c]
xor esi, esi
mov dword [ebp - 0x234], eax
test eax, eax
je 0x49a77a
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 0x49a750
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 0x49a76b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, dword [ebp - 0x234]
jb 0x49a734
mov edi, dword [ebp - 0x260]
push edi
call fcn.004a1bdc
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 0x49a7a1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404b10
push 0x80004005
call fcn.00404b10
push 0x80004005
call fcn.00404b10
push 0x80070057
call fcn.00404b10
call fcn.00403b10
call fcn.004a1aff
int3