Function at 0x4eb9ec
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x20
push 0
push 0
dec ecx
jne 0x4eb9f5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00404100
xor eax, eax
push ebp
push 0x4ec856
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0xc]
call fcn.00409868
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.004090d8
mov edx, dword [ebp - 0x4c]
mov eax, 0x4ec86c
call fcn.00404238
test eax, eax
jg 0x4eba70
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0xc]
call fcn.00409868
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.004090d8
mov edx, dword [ebp - 0x54]
mov eax, 0x4ec87c
call fcn.00404238
test eax, eax
jle 0x4eba85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8f4]
xor ecx, ecx
mov edx, 3
call fcn.0047d6f8
xor esi, esi
push ebp
push 0x4ec6a0
push dword fs:[esi]
mov dword fs:[esi], esp
mov eax, dword [0x5034b8]
mov byte [eax], 2
xor eax, eax
push ebp
push 0x4ebae0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x15034]
mov eax, dword [ebp - 4]
add eax, 0x1494c
call fcn.0040649a
mov eax, dword [ebp - 4]
add eax, 0x1494c
mov edx, 1
call fcn.004069d1
call fcn.00402874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ebb16
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x1493c]
test ebx, ebx
je 0x4ebc61
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x143e4]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.00409868
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x18]
call fcn.004090d8
mov eax, dword [ebp - 0x18]
mov edx, 0x4ec88c
call fcn.0040405c
je 0x4ebc36
mov eax, dword [ebp - 0x18]
mov edx, 0x4ec89c
call fcn.0040405c
je 0x4ebc36
mov eax, dword [ebp - 0x18]
mov edx, 0x4ec8ac
call fcn.0040405c
je 0x4ebc36
mov eax, dword [ebp - 0x18]
mov edx, 0x4ec8bc
call fcn.0040405c
je 0x4ebc36
mov eax, dword [ebp - 0x18]
mov edx, 0x4ec8cc
call fcn.0040405c
je 0x4ebc36
mov eax, dword [ebp - 0x18]
mov edx, 0x4ec8dc
call fcn.0040405c
je 0x4ebc36
mov eax, dword [ebp - 0x18]
mov edx, 0x4ec8ec
call fcn.0040405c
je 0x4ebc36
mov eax, dword [ebp - 0x18]
mov edx, 0x4ec8fc
call fcn.0040405c
je 0x4ebc36
mov eax, dword [ebp - 0x18]
mov edx, 0x4ec86c
call fcn.0040405c
je 0x4ebc36
mov eax, dword [ebp - 0x18]
mov edx, 0x4ec87c
call fcn.0040405c
je 0x4ebc36
mov eax, dword [ebp - 0x18]
mov edx, 0x4ec90c
call fcn.0040405c
je 0x4ebc36
mov eax, dword [ebp - 0x18]
mov edx, 0x4ec91c
call fcn.0040405c
je 0x4ebc36
mov eax, dword [ebp - 0x18]
mov edx, 0x4ec92c
call fcn.0040405c
je 0x4ebc36
mov eax, dword [ebp - 0x18]
mov edx, 0x4ec93c
call fcn.0040405c
jne 0x4ebc52
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x143e4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1493c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x4ebcb1
lea eax, [ebp - 0x14]
mov edx, 0x4ec94c
call fcn.00403d64
jmp 0x4ebcb1
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0xc]
call fcn.004090d8
mov edx, dword [ebp - 0x64]
mov eax, 0x4ec960
call fcn.00404238
test eax, eax
jg 0x4ebc97
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0xc]
call fcn.004090d8
mov eax, dword [ebp - 0x68]
mov edx, 0x4ec970
call fcn.0040405c
jne 0x4ebca6
lea eax, [ebp - 0x14]
mov edx, 0x4ec94c
call fcn.00403d64
jmp 0x4ebcb1
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00403d64
mov eax, dword [ebp - 4]
add eax, 0x1494c
call fcn.0040670c
call fcn.00402874
inc eax
mov ebx, dword [ebp - 8]
mov edx, ebx
shl ebx, 3
sub ebx, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15030]
mov dword [edx + ebx*8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
xor edx, edx
mov dword [eax + ebx*8 + 8], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
xor edx, edx
mov dword [eax + ebx*8 + 4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xd], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
xor edx, edx
mov dword [eax + ebx*8 + 0x24], edx
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x14]
call fcn.00409868
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.004090d8
mov eax, dword [ebp - 0x6c]
mov edx, 0x4ec90c
call fcn.0040405c
jne 0x4ebd5b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xe], 1
jmp 0x4ec0da
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x14]
call fcn.00409868
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x74]
call fcn.004090d8
mov edx, dword [ebp - 0x74]
mov eax, 0x4ec86c
call fcn.00404238
test eax, eax
jle 0x4ebd95
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xe], 2
jmp 0x4ec0da
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x14]
call fcn.00409868
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
call fcn.004090d8
mov edx, dword [ebp - 0x7c]
mov eax, 0x4ec87c
call fcn.00404238
test eax, eax
jle 0x4ebdcf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xe], 3
jmp 0x4ec0da
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 0x14]
call fcn.00409868
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.004090d8
mov edx, dword [ebp - 0x84]
mov eax, 0x4ec91c
call fcn.00404238
test eax, eax
jle 0x4ebe15
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xe], 4
jmp 0x4ec0da
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x14]
call fcn.00409868
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.004090d8
mov edx, dword [ebp - 0x8c]
mov eax, 0x4ec92c
call fcn.00404238
test eax, eax
jle 0x4ebe5b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xe], 5
jmp 0x4ec0da
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x14]
call fcn.00409868
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.004090d8
mov edx, dword [ebp - 0x94]
mov eax, 0x4ec93c
call fcn.00404238
test eax, eax
jle 0x4ebea1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xe], 6
jmp 0x4ec0da
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x14]
call fcn.00409868
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call fcn.004090d8
mov edx, dword [ebp - 0x9c]
mov eax, 0x4ec8fc
call fcn.00404238
test eax, eax
jle 0x4ebee7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xe], 7
jmp 0x4ec0da
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 0x14]
call fcn.00409868
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
call fcn.004090d8
mov edx, dword [ebp - 0xa4]
mov eax, 0x4ec8ec
call fcn.00404238
test eax, eax
jle 0x4ebf2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xe], 0xb
jmp 0x4ec0da
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0x14]
call fcn.00409868
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
call fcn.004090d8
mov edx, dword [ebp - 0xac]
mov eax, 0x4ec8dc
call fcn.00404238
test eax, eax
jle 0x4ebf73
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xe], 0xc
jmp 0x4ec0da
lea edx, [ebp - 0xb8]
mov eax, dword [ebp - 0x14]
call fcn.00409868
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.004090d8
mov edx, dword [ebp - 0xb4]
mov eax, 0x4ec8cc
call fcn.00404238
test eax, eax
jle 0x4ebfca
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xe], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov dword [eax + ebx*8 + 4], 0xffffffff
jmp 0x4ec0da
lea edx, [ebp - 0xc0]
mov eax, dword [ebp - 0x14]
call fcn.00409868
mov eax, dword [ebp - 0xc0]
lea edx, [ebp - 0xbc]
call fcn.004090d8
mov edx, dword [ebp - 0xbc]
mov eax, 0x4ec8bc
call fcn.00404238
test eax, eax
jle 0x4ec010
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xe], 0xd
jmp 0x4ec0da
lea edx, [ebp - 0xc8]
mov eax, dword [ebp - 0x14]
call fcn.00409868
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc4]
call fcn.004090d8
mov edx, dword [ebp - 0xc4]
mov eax, 0x4ec8ac
call fcn.00404238
test eax, eax
jle 0x4ec056
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xe], 0xe
jmp 0x4ec0da
lea edx, [ebp - 0xd0]
mov eax, dword [ebp - 0x14]
call fcn.00409868
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xcc]
call fcn.004090d8
mov edx, dword [ebp - 0xcc]
mov eax, 0x4ec89c
call fcn.00404238
test eax, eax
jle 0x4ec099
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xe], 0xf
jmp 0x4ec0da
lea edx, [ebp - 0xd8]
mov eax, dword [ebp - 0x14]
call fcn.00409868
mov eax, dword [ebp - 0xd8]
lea edx, [ebp - 0xd4]
call fcn.004090d8
mov edx, dword [ebp - 0xd4]
mov eax, 0x4ec88c
call fcn.00404238
test eax, eax
jle 0x4ec0da
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov byte [eax + ebx*8 + 0xe], 0x10
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, 0x1494c
call fcn.0040670c
call fcn.00402874
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x1494c
call fcn.00406a08
call fcn.00402874
push 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, 0x1494c
mov ecx, 4
call fcn.004065a0
call fcn.00402874
lea edx, [ebp - 0xdc]
mov eax, dword [ebp - 0x14]
call fcn.004090d8
mov edx, dword [ebp - 0xdc]
mov eax, 0x4ec91c
call fcn.00404238
test eax, eax
jg 0x4ec18b
lea edx, [ebp - 0xe0]
mov eax, dword [ebp - 0x14]
call fcn.004090d8
mov edx, dword [ebp - 0xe0]
mov eax, 0x4ec92c
call fcn.00404238
test eax, eax
jg 0x4ec18b
lea edx, [ebp - 0xe4]
mov eax, dword [ebp - 0x14]
call fcn.004090d8
mov edx, dword [ebp - 0xe4]
mov eax, 0x4ec93c
call fcn.00404238
test eax, eax
jle 0x4ec26b
call fcn.0040a76c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x1c]
mov eax, 0x4ec984
call fcn.0040b368
mov eax, dword [ebp - 0x1c]
call fcn.00403f4c
mov edx, eax
test edx, edx
jle 0x4ec1c8
mov ecx, 1
lea eax, [ebp - 0x48]
mov ebx, dword [ebp - 0x1c]
mov bl, byte [ebx + ecx - 1]
mov byte [eax], bl
inc ecx
inc eax
dec edx
jne 0x4ec1ba
push 0
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
add eax, 0x1494c
mov ecx, 0x1e
call fcn.004065a0
call fcn.00402874
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1493c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x143e4]
jne 0x4ec26b
lea edx, [ebp - 0xe8]
mov eax, dword [ebp - 0x14]
call fcn.004090d8
mov edx, dword [ebp - 0xe8]
mov eax, 0x4ec91c
call fcn.00404238
test eax, eax
jle 0x4ec26b
push 0
mov eax, dword [ebp - 4]
push dword [eax + 0x153f8]
mov eax, dword [ebp - 4]
push dword [eax + 0x1544c]
push 0x4ec99c
push dword [ebp - 0x1c]
push 0x4ec91c
lea eax, [ebp - 0xec]
mov edx, 5
call fcn.0040400c
mov eax, dword [ebp - 0xec]
call fcn.00404110
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404110
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [ebp - 4]
add eax, 0x1494c
call fcn.00406604
call fcn.00402874
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x15034]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004f3f7c
mov edx, dword [ebp - 8]
mov ecx, edx
shl edx, 3
sub edx, ecx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x15030]
mov dword [ecx + edx*8 + 0x10], eax
mov eax, dword [0x5034b8]
mov byte [eax], 2
xor eax, eax
push ebp
push 0x4ec325
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x15034]
mov eax, dword [ebp - 4]
add eax, 0x1494c
call fcn.0040649a
mov eax, dword [ebp - 4]
add eax, 0x1494c
mov edx, 1
call fcn.004069d1
call fcn.00402874
mov eax, dword [ebp - 4]
add eax, 0x1494c
call fcn.0040670c
call fcn.00402874
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x1494c
call fcn.00406a08
call fcn.00402874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ec35b
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15030]
cmp byte [edx + eax*8 + 0xe], 2
jne 0x4ec38d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x143f1], 0
jne 0x4ec38d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x16082], 0
je 0x4ec401
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15030]
cmp byte [edx + eax*8 + 0xe], 1
jne 0x4ec608
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1493c], 0
je 0x4ec3ca
mov eax, dword [ebp - 0x14]
mov edx, 0x4ec94c
call fcn.0040405c
jne 0x4ec608
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15030]
mov bl, byte [edx + eax*8 + 0x28]
test bl, bl
je 0x4ec401
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15030]
cmp bl, 3
jne 0x4ec608
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15030]
cmp byte [edx + eax*8 + 0xe], 1
jne 0x4ec4e9
xor eax, eax
push ebp
push 0x4ec4b2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xf4]
call fcn.00404390
push eax
lea eax, [ebp - 0xf8]
call fcn.00406178
push eax
lea ecx, [ebp - 0xfc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8f4]
mov edx, 0xcb
call fcn.00478788
mov eax, dword [ebp - 0xfc]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
call fcn.00406274
mov eax, dword [ebp - 0xf8]
push eax
mov eax, dword [eax]
call dword [eax + pe_nt_image_headers32]
call fcn.00406274
mov edx, dword [ebp - 0xf4]
lea eax, [ebp - 0xf0]
call fcn.00403f14
mov edx, dword [ebp - 0xf0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x454]
call fcn.00435448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ec4bc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x153f8]
lea eax, [ebp - 0x20]
mov ecx, 0x4ec9a8
call fcn.00403f98
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x454]
mov eax, dword [eax + 0x23c]
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov ebx, dword [ebp - 8]
mov eax, ebx
shl ebx, 3
sub ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
cmp byte [eax + ebx*8 + 0xe], 2
jne 0x4ec511
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004f6e38
push 0
push 0
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004f4224
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15030]
mov dword [edx + ebx*8 + 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
mov eax, dword [eax + ebx*8 + 0x10]
mov edx, dword [ebp - 8]
mov ecx, edx
shl edx, 3
sub edx, ecx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x15030]
add eax, dword [ecx + edx*8 + 0x24]
add eax, 4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15030]
mov dword [edx + ebx*8 + 0x10], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, 0x1494c
call fcn.0040670c
call fcn.00402874
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x1494c
call fcn.00406a08
call fcn.00402874
push 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, 0x1494c
mov ecx, 4
call fcn.004065a0
call fcn.00402874
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15030]
cmp dword [eax + ebx*8 + 0x24], 0
jle 0x4ec600
push 0
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15030]
mov ecx, dword [edx + eax*8 + 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14438]
mov eax, dword [ebp - 4]
add eax, 0x1494c
call fcn.004065a0
call fcn.00402874
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14438]
call fcn.004027bc
mov eax, dword [ebp - 0x20]
call fcn.00409764
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15030]
cmp byte [edx + eax*8 + 0x28], 0
jne 0x4ec630
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15030]
mov byte [edx + eax*8 + 0x28], 1
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15030]
cmp byte [edx + eax*8 + 0x28], 3
jne 0x4ec64e
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15030]
mov byte [edx + eax*8 + 0x28], 4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x15400], 1
jne 0x4ec664
mov eax, dword [ebp - 4]
mov byte [eax + 0x15400], 2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x15400], 3
jne 0x4ec67a
mov eax, dword [ebp - 4]
mov byte [eax + 0x15400], 0
mov eax, 0x4ec94c
call fcn.00409764
mov eax, dword [ebp - 4]
add eax, 0x1494c
call fcn.00406604
call fcn.00402874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ec6c4
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1493c]
test esi, esi
je 0x4ec7f2
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x143e4]
cmp eax, ebx
jle 0x4ec780
lea ecx, [ebp - 0x104]
mov edx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1493c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x104]
lea edx, [ebp - 0x100]
call fcn.00409868
mov eax, dword [ebp - 0x100]
lea edx, [ebp - 0x18]
call fcn.004090d8
mov edx, dword [ebp - 0x18]
mov eax, 0x4ec960
call fcn.00404238
test eax, eax
jle 0x4ec7f2
mov eax, dword [ebp - 4]
inc dword [eax + 0x143e4]
lea ecx, [ebp - 0x108]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x143e4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1493c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 4]
add eax, 0x14948
call fcn.00403d20
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004cf44c
jmp 0x4ec7f2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1493c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4ec7f2
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14948]
mov eax, 0x4ec960
call fcn.00404238
test eax, eax
jle 0x4ec7dc
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x143e4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa2c]
call fcn.00465068
call fcn.00462d20
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x14420], ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004cad14
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1493c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x143e4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec85d
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.00403cf0
lea eax, [ebp - 0xfc]
call fcn.00406178
lea eax, [ebp - 0xf8]
call fcn.00406178
lea eax, [ebp - 0xf4]
call fcn.00404390
lea eax, [ebp - 0xf0]
mov edx, 0x2a
call fcn.00403cf0
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00403cf0
lea eax, [ebp - 0xc]
call fcn.00403ccc
ret