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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1395
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x50b0c0]
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 edi, dword [ebp + 8]
push 1
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x23c], eax
call fcn.00420020
add esp, 4
lea ecx, [ebp - 0x264]
push 0
push edi
call fcn.00499860
push ecx
mov esi, esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], esi
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x4a2fe2
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.004099b0
test al, al
jne 0x4a22c4
push 4
push str._pid
mov ecx, esi
call fcn.00409c60
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0
call fcn.0049a880
test eax, eax
je 0x4a2368
push ecx
mov esi, esp
mov dword [ebp - 0x234], esi
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x4a2fe2
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.004099b0
test al, al
jne 0x4a2321
push 4
push str._pid
mov ecx, esi
call fcn.00409c60
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 0
push eax
lea ecx, [ebp - 0x264]
call fcn.0049a910
push eax
mov ecx, 0x50ece0
mov byte [ebp - 4], 3
call fcn.00408430
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 0x4a2368
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.004a8730
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.0040a050
test eax, eax
je 0x4a2fe2
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x224], eax
push esi
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 4
call fcn.004099b0
test al, al
jne 0x4a23fd
test esi, esi
jne 0x4a23dc
xor ecx, ecx
jmp 0x4a23f0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a23e1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x224]
call fcn.00409c60
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 5
cmp dword [eax - 4], 1
jle 0x4a2421
push dword [eax - 0xc]
lea ecx, [ebp - 0x224]
call fcn.00409ad0
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [ebp - 0x224]
push dword [eax - 8]
push eax
call fcn.004b30c6
mov edx, eax
add esp, 8
test edx, edx
js 0x4a3000
mov ecx, dword [ebp - 0x224]
cmp edx, dword [ecx - 8]
jg 0x4a3000
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x22c], 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.0040a050
mov ecx, eax
test ecx, ecx
je 0x4a2fec
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x4f29b8
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 7
call fcn.004099b0
test al, al
jne 0x4a24c7
push 1
push 0x4f29b8
lea ecx, [ebp - 0x21c]
call fcn.00409c60
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0047df50
mov edx, dword [ebp - 0x21c]
add esp, 0xc
mov byte [ebp - 4], 6
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a250a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x50ece0]
cmp dword [eax - 0xc], 0
jne 0x4a2548
mov edx, dword [ebp - 0x248]
mov esi, dword [ebp - 0x24c]
sub edx, esi
sar edx, 2
cmp edx, 3
jb 0x4a253e
lea eax, [esi + 8]
mov ecx, 0x50ece0
push eax
call fcn.00408430
mov eax, dword [0x50ece0]
cmp dword [eax - 0xc], 0
je 0x4a263c
lea eax, [ebp - 0x21c]
push eax
call fcn.0047f0b0
add esp, 4
push dword [ebp - 0x21c]
mov byte [ebp - 4], 9
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a2592
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 0x4a2592
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x238]
push eax
call fcn.00478e70
add esp, 4
mov ecx, dword [eax]
lea edx, [ebp - 0x228]
push edx
mov byte [ebp - 4], 0xa
mov eax, dword [ecx]
mov eax, dword [eax + 0xf0]
call eax
push dword [ebp - 0x21c]
push dword [0x50ece0]
push str.DPid
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x228]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a25ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x4a261a
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4a261a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4a261a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a263c
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 0x4a26cd
mov eax, dword [esi + 0xc]
sub eax, 0x10
push eax
call fcn.00409760
mov edi, eax
add esp, 4
cmp dword [edi + 4], 0
lea esi, [edi + 0x10]
jl 0x4a26b2
push str.SMDB
push esi
call fcn.004a890c
add esp, 8
test eax, eax
je 0x4a2687
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4a26a8
cmp dword [esi - 0xc], 0
jl 0x4a26b2
push 0x4f4458
push esi
call fcn.004a890c
add esp, 8
test eax, eax
je 0x4a26b2
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4a26b2
mov dword [ebp - 0x22c], 1
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4a26c7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x230]
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x4a2fe2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x240], eax
push edi
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xb
call fcn.004099b0
test al, al
jne 0x4a272c
test edi, edi
jne 0x4a2708
xor ecx, ecx
jmp 0x4a271f
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2710
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x240]
call fcn.00409c60
mov edi, dword [ebp - 0x240]
mov byte [ebp - 4], 0xc
cmp dword [edi - 0xc], 0
jl 0x4a277f
push 0x4e3cac
push edi
call fcn.004a890c
add esp, 8
test eax, eax
je 0x4a2757
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4a2778
cmp dword [edi - 0xc], 0
jl 0x4a277f
push 0x4e3cb4
push edi
call fcn.004a890c
add esp, 8
test eax, eax
je 0x4a277f
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x4a277f
mov eax, 1
jmp 0x4a2781
xor eax, eax
mov dword [0x50ecdc], eax
cmp dword [edi - 0xc], 0
jl 0x4a2bcc
push 0x4e3cbc
push edi
call fcn.004a890c
add esp, 8
test eax, eax
je 0x4a27ab
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4a27d8
cmp dword [edi - 0xc], 0
jl 0x4a2bcc
push 0x4e3cc4
push edi
call fcn.004a890c
add esp, 8
test eax, eax
je 0x4a2b82
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x4a2b82
push ecx
mov esi, esp
mov dword [ebp - 0x234], esi
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x4a2fe2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0x4e3cc4
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.004099b0
test al, al
jne 0x4a281e
push 2
push 0x4e3cc4
mov ecx, esi
call fcn.00409c60
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x264]
call fcn.0049a910
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 0xe
cmp dword [eax - 0xc], 0
jne 0x4a28d6
push ecx
mov esi, esp
mov dword [ebp - 0x234], esi
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x4a2ff6
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0x4e3cbc
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.004099b0
test al, al
jne 0x4a288e
push 2
push 0x4e3cbc
mov ecx, esi
call fcn.00409c60
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x264]
call fcn.0049a910
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x10
call fcn.00408430
mov edx, dword [ebp - 0x228]
or eax, 0xffffffff
mov byte [ebp - 4], 0xe
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a28d6
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 0x4a2af2
xor edx, edx
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x220]
test edx, edx
js 0x4a293c
cmp edx, dword [eax - 0xc]
jg 0x4a293c
lea esi, [edx + edx]
add eax, esi
push 0x4f2e14
push eax
call fcn.004a890c
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x220]
test ecx, ecx
jne 0x4a2925
or ecx, 0xffffffff
jmp 0x4a2929
sub ecx, eax
sar ecx, 1
mov dword [ebp - 0x21c], ecx
cmp ecx, 0xffffffff
jne 0x4a297c
mov edx, dword [ebp - 0x230]
jmp 0x4a293f
lea esi, [edx + edx]
test edx, edx
js 0x4a296a
cmp edx, dword [eax - 0xc]
jg 0x4a296a
add eax, esi
push 0x4f5e24
push eax
call fcn.004a890c
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x220]
test ecx, ecx
je 0x4a296a
sub ecx, eax
sar ecx, 1
jmp 0x4a296d
or ecx, 0xffffffff
mov dword [ebp - 0x21c], ecx
cmp ecx, 0xffffffff
je 0x4a2ae9
xor esi, esi
test ecx, ecx
cmovns esi, ecx
mov dword [ebp - 0x234], esi
cmp esi, dword [eax - 0xc]
jl 0x4a29a2
add eax, 0xfffffff0
push eax
call fcn.00409760
add esp, 4
lea esi, [eax + 0x10]
jmp 0x4a2a7a
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x4a29ca
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x4a29ca
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x228], eax
jmp 0x4a29f4
call fcn.0040a050
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 - 0x230], eax
mov dword [ebp - 0x228], eax
test ecx, ecx
je 0x4a2fe2
test eax, eax
jne 0x4a2a00
test esi, esi
jne 0x4a3000
mov eax, dword [ecx]
push 2
push esi
mov eax, dword [eax]
call eax
test eax, eax
je 0x4a300a
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x234]
test eax, eax
js 0x4a3000
cmp eax, dword [esi - 8]
jg 0x4a3000
lea ecx, [eax + eax]
mov dword [esi - 0xc], eax
xor eax, eax
mov word [ecx + esi], ax
test ecx, ecx
je 0x4a2a7a
test esi, esi
je 0x4a2a6a
mov eax, dword [ebp - 0x230]
push ecx
test eax, eax
je 0x4a2a56
push eax
push esi
call fcn.004a81b0
add esp, 0xc
jmp 0x4a2a7a
push 0
push esi
call fcn.004a8730
add esp, 0xc
cmp dword [ebp - 0x228], 0
jne 0x4a2a7a
call fcn.004abdfd
mov dword [eax], 0x16
call fcn.004abcff
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a2a8d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x21c]
add esi, 0xfffffff0
mov eax, dword [ebp - 0x220]
inc ecx
mov edx, ecx
mov dword [ebp - 0x230], edx
cmp ecx, dword [eax - 0xc]
jge 0x4a2ace
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a28f2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x230]
jmp 0x4a28f2
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a2ae3
mov ecx, dword [esi]
push esi
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 - 0x228], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
push eax
call fcn.00409760
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [0x50ecc8]
mov byte [ebp - 4], 0x11
test eax, eax
jne 0x4a2b54
push 0x180
call fcn.004a6623
add esp, 4
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 0x12
test eax, eax
je 0x4a2b49
mov ecx, eax
call fcn.00456570
jmp 0x4a2b4b
xor eax, eax
mov byte [ebp - 4], 0x11
mov dword [0x50ecc8], eax
lea ecx, [eax + 4]
mov byte [ebp - 4], 0xe
call fcn.0045f960
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 0x4a2b82
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi - 0xc], 0
jl 0x4a2bcc
push 0x4e3ccc
push edi
call fcn.004a890c
add esp, 8
test eax, eax
je 0x4a2ba7
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4a2d0a
cmp dword [edi - 0xc], 0
jl 0x4a2bcc
push 0x4e3cd4
push edi
call fcn.004a890c
add esp, 8
test eax, eax
je 0x4a2bcc
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4a2d0a
cmp dword [ebp - 0x22c], 0
jne 0x4a2d0a
cmp dword [0x50ecdc], 0
mov dword [0x50ecd8], 0
jne 0x4a2bf6
call fcn.00479e20
mov dword [0x50ecdc], eax
push 0x4ed664
push str.start
push 0x4e31ec
call fcn.0047c9f0
add esp, 0xc
cmp dword [0x50eccc], 0
jne 0x4a2c45
push 0x128
call fcn.004a6623
add esp, 4
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0x16
test eax, eax
je 0x4a2c3a
mov ecx, eax
call fcn.0049c6d0
jmp 0x4a2c3c
xor eax, eax
mov byte [ebp - 4], 0xc
mov dword [0x50eccc], eax
call fcn.0049cca0
mov esi, dword [ebp - 0x23c]
add esi, 0x1c
mov dword [ebp - 0x21c], 0
mov edi, 1
test edi, edi
je 0x4a2c9f
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4a2c9f
mov ecx, dword [ebp - 0x23c]
push dword [ebp - 0x21c]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
inc dword [ebp - 0x21c]
xor ecx, ecx
test eax, eax
cmovne ecx, edi
mov edi, ecx
test edi, edi
jne 0x4a2c66
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x4a2c62
test eax, eax
je 0x4a2cf0
mov ecx, dword [ebp - 0x23c]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test eax, eax
jne 0x4a2cd5
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, dword [ebp - 0x23c]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test eax, eax
je 0x4a2c62
jmp 0x4a2c53
mov eax, dword [ebp - 0x23c]
mov edi, dword [ebp - 0x240]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x22c], ecx
jmp 0x4a2e51
mov dword [0x50ecd8], 1
cmp dword [edi - 0xc], 0
jl 0x4a2d62
push 0x4e3cdc
push edi
call fcn.004a890c
add esp, 8
test eax, eax
je 0x4a2d35
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4a2d56
cmp dword [edi - 0xc], 0
jl 0x4a2d62
push 0x4e3ce4
push edi
call fcn.004a890c
add esp, 8
test eax, eax
je 0x4a2d62
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x4a2d62
mov dword [ebp - 0x22c], 1
jmp 0x4a2d6c
mov dword [ebp - 0x22c], 0
push 0x4ed664
push str.start
push 0x4e31ec
call fcn.0047c9f0
movaps xmm0, xmmword [0x4e2c10]
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
push 0
movups xmmword [eax], xmm0
push ecx
movups xmmword [eax + 0x10], xmm0
mov esi, esp
mov dword [ebp - 0x234], esp
movq xmm0, qword [ebp - 0x26c]
movq qword [eax + 0x20], xmm0
mov dword [ebp - 0x228], esi
mov eax, dword [0x50ece0]
add eax, 0xfffffff0
push eax
call fcn.00409760
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [0x50ecc8]
mov byte [ebp - 4], 0x13
test eax, eax
jne 0x4a2e17
push 0x180
call fcn.004a6623
add esp, 4
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 0x14
test eax, eax
je 0x4a2e0c
mov ecx, eax
call fcn.00456570
jmp 0x4a2e0e
xor eax, eax
mov byte [ebp - 4], 0x13
mov dword [0x50ecc8], eax
push dword [0x50ecdc]
mov ecx, eax
push dword [0x50ecd8]
mov byte [ebp - 4], 0xc
call fcn.00456930
test eax, eax
js 0x4a2e47
cmp dword [ebp - 0x22c], 0
je 0x4a2e47
call fcn.0049b7a0
mov ecx, eax
call fcn.004599d0
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 6
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4a2e6d
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 0x4a2f0f
mov edi, dword [ebp - 0x248]
cmp esi, edi
je 0x4a2eb7
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 0x4a2eaa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x4a2e90
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 0x4a2ee7
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a300f
push ecx
push esi
call fcn.004a6653
add esp, 8
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov edx, dword [ebp - 0x224]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2f31
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 0x4a2fa3
mov eax, dword [ebp - 0x25c]
xor esi, esi
mov dword [ebp - 0x234], eax
test eax, eax
je 0x4a2f9a
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 0x4a2f70
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 0x4a2f8b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, dword [ebp - 0x234]
jb 0x4a2f54
mov edi, dword [ebp - 0x260]
push edi
call fcn.004abe10
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 0x4a2fc1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x22c]
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.004a69a0
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00409e30
push 0x80004005
call fcn.00409e30
push 0x80004005
call fcn.00409e30
push 0x80070057
call fcn.00409e30
call fcn.00408de0
call fcn.004abd0f
int3