Function at 0x4f8d58
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x20
push 0
push 0
dec ecx
jne 0x4f8d61
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 0x4f9bc2
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, 0x4f9bd8
call fcn.00404238
test eax, eax
jg 0x4f8ddc
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, 0x4f9be8
call fcn.00404238
test eax, eax
jle 0x4f8df1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8d8]
xor ecx, ecx
mov edx, 3
call fcn.0047dac8
xor esi, esi
push ebp
push 0x4f9a0c
push dword fs:[esi]
mov dword fs:[esi], esp
mov eax, dword [0x50b4bc]
mov byte [eax], 2
xor eax, eax
push ebp
push 0x4f8e4c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x15198]
mov eax, dword [ebp - 4]
add eax, 0x14ab0
call fcn.0040649a
mov eax, dword [ebp - 4]
add eax, 0x14ab0
mov edx, 1
call fcn.004069d1
call fcn.00402874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f8e82
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x14aa0]
test ebx, ebx
je 0x4f8fcd
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x144b4]
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, 0x4f9bf8
call fcn.0040405c
je 0x4f8fa2
mov eax, dword [ebp - 0x18]
mov edx, 0x4f9c08
call fcn.0040405c
je 0x4f8fa2
mov eax, dword [ebp - 0x18]
mov edx, 0x4f9c18
call fcn.0040405c
je 0x4f8fa2
mov eax, dword [ebp - 0x18]
mov edx, 0x4f9c28
call fcn.0040405c
je 0x4f8fa2
mov eax, dword [ebp - 0x18]
mov edx, 0x4f9c38
call fcn.0040405c
je 0x4f8fa2
mov eax, dword [ebp - 0x18]
mov edx, 0x4f9c48
call fcn.0040405c
je 0x4f8fa2
mov eax, dword [ebp - 0x18]
mov edx, 0x4f9c58
call fcn.0040405c
je 0x4f8fa2
mov eax, dword [ebp - 0x18]
mov edx, 0x4f9c68
call fcn.0040405c
je 0x4f8fa2
mov eax, dword [ebp - 0x18]
mov edx, 0x4f9bd8
call fcn.0040405c
je 0x4f8fa2
mov eax, dword [ebp - 0x18]
mov edx, 0x4f9be8
call fcn.0040405c
je 0x4f8fa2
mov eax, dword [ebp - 0x18]
mov edx, 0x4f9c78
call fcn.0040405c
je 0x4f8fa2
mov eax, dword [ebp - 0x18]
mov edx, 0x4f9c88
call fcn.0040405c
je 0x4f8fa2
mov eax, dword [ebp - 0x18]
mov edx, 0x4f9c98
call fcn.0040405c
je 0x4f8fa2
mov eax, dword [ebp - 0x18]
mov edx, 0x4f9ca8
call fcn.0040405c
jne 0x4f8fbe
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x144b4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14aa0]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x4f901d
lea eax, [ebp - 0x14]
mov edx, 0x4f9cb8
call fcn.00403d64
jmp 0x4f901d
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0xc]
call fcn.004090d8
mov edx, dword [ebp - 0x64]
mov eax, 0x4f9ccc
call fcn.00404238
test eax, eax
jg 0x4f9003
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0xc]
call fcn.004090d8
mov eax, dword [ebp - 0x68]
mov edx, 0x4f9cdc
call fcn.0040405c
jne 0x4f9012
lea eax, [ebp - 0x14]
mov edx, 0x4f9cb8
call fcn.00403d64
jmp 0x4f901d
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00403d64
mov eax, dword [ebp - 4]
add eax, 0x14ab0
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 + 0x15194]
mov dword [edx + ebx*8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
xor edx, edx
mov dword [eax + ebx*8 + 8], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
xor edx, edx
mov dword [eax + ebx*8 + 4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xd], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
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, 0x4f9c78
call fcn.0040405c
jne 0x4f90c7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xe], 1
jmp 0x4f9446
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, 0x4f9bd8
call fcn.00404238
test eax, eax
jle 0x4f9101
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xe], 2
jmp 0x4f9446
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, 0x4f9be8
call fcn.00404238
test eax, eax
jle 0x4f913b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xe], 3
jmp 0x4f9446
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, 0x4f9c88
call fcn.00404238
test eax, eax
jle 0x4f9181
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xe], 4
jmp 0x4f9446
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, 0x4f9c98
call fcn.00404238
test eax, eax
jle 0x4f91c7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xe], 5
jmp 0x4f9446
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, 0x4f9ca8
call fcn.00404238
test eax, eax
jle 0x4f920d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xe], 6
jmp 0x4f9446
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, 0x4f9c68
call fcn.00404238
test eax, eax
jle 0x4f9253
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xe], 7
jmp 0x4f9446
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, 0x4f9c58
call fcn.00404238
test eax, eax
jle 0x4f9299
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xe], 0xb
jmp 0x4f9446
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, 0x4f9c48
call fcn.00404238
test eax, eax
jle 0x4f92df
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xe], 0xc
jmp 0x4f9446
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, 0x4f9c38
call fcn.00404238
test eax, eax
jle 0x4f9336
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xe], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov dword [eax + ebx*8 + 4], 0xffffffff
jmp 0x4f9446
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, 0x4f9c28
call fcn.00404238
test eax, eax
jle 0x4f937c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xe], 0xd
jmp 0x4f9446
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, 0x4f9c18
call fcn.00404238
test eax, eax
jle 0x4f93c2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xe], 0xe
jmp 0x4f9446
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, 0x4f9c08
call fcn.00404238
test eax, eax
jle 0x4f9405
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xe], 0xf
jmp 0x4f9446
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, 0x4f9bf8
call fcn.00404238
test eax, eax
jle 0x4f9446
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
mov byte [eax + ebx*8 + 0xe], 0x10
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, 0x14ab0
call fcn.0040670c
call fcn.00402874
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x14ab0
call fcn.00406a08
call fcn.00402874
push 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, 0x14ab0
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, 0x4f9c88
call fcn.00404238
test eax, eax
jg 0x4f94f7
lea edx, [ebp - 0xe0]
mov eax, dword [ebp - 0x14]
call fcn.004090d8
mov edx, dword [ebp - 0xe0]
mov eax, 0x4f9c98
call fcn.00404238
test eax, eax
jg 0x4f94f7
lea edx, [ebp - 0xe4]
mov eax, dword [ebp - 0x14]
call fcn.004090d8
mov edx, dword [ebp - 0xe4]
mov eax, 0x4f9ca8
call fcn.00404238
test eax, eax
jle 0x4f95d7
call fcn.0040a76c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x1c]
mov eax, 0x4f9cf0
call fcn.0040b368
mov eax, dword [ebp - 0x1c]
call fcn.00403f4c
mov edx, eax
test edx, edx
jle 0x4f9534
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 0x4f9526
push 0
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
add eax, 0x14ab0
mov ecx, 0x1e
call fcn.004065a0
call fcn.00402874
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14aa0]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x144b4]
jne 0x4f95d7
lea edx, [ebp - 0xe8]
mov eax, dword [ebp - 0x14]
call fcn.004090d8
mov edx, dword [ebp - 0xe8]
mov eax, 0x4f9c88
call fcn.00404238
test eax, eax
jle 0x4f95d7
push 0
mov eax, dword [ebp - 4]
push dword [eax + 0x1555c]
mov eax, dword [ebp - 4]
push dword [eax + 0x155ac]
push 0x4f9d08
push dword [ebp - 0x1c]
push 0x4f9c88
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, 0x14ab0
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 + 0x15198]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00506e0c
mov edx, dword [ebp - 8]
mov ecx, edx
shl edx, 3
sub edx, ecx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x15194]
mov dword [ecx + edx*8 + 0x10], eax
mov eax, dword [0x50b4bc]
mov byte [eax], 2
xor eax, eax
push ebp
push 0x4f9691
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x15198]
mov eax, dword [ebp - 4]
add eax, 0x14ab0
call fcn.0040649a
mov eax, dword [ebp - 4]
add eax, 0x14ab0
mov edx, 1
call fcn.004069d1
call fcn.00402874
mov eax, dword [ebp - 4]
add eax, 0x14ab0
call fcn.0040670c
call fcn.00402874
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x14ab0
call fcn.00406a08
call fcn.00402874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f96c7
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15194]
cmp byte [edx + eax*8 + 0xe], 2
jne 0x4f96f9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x144c1], 0
jne 0x4f96f9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x161e2], 0
je 0x4f976d
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15194]
cmp byte [edx + eax*8 + 0xe], 1
jne 0x4f9974
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14aa0], 0
je 0x4f9736
mov eax, dword [ebp - 0x14]
mov edx, 0x4f9cb8
call fcn.0040405c
jne 0x4f9974
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15194]
mov bl, byte [edx + eax*8 + 0x28]
test bl, bl
je 0x4f976d
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15194]
cmp bl, 3
jne 0x4f9974
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15194]
cmp byte [edx + eax*8 + 0xe], 1
jne 0x4f9855
xor eax, eax
push ebp
push 0x4f981e
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 + 0x8d8]
mov edx, 0xcb
call fcn.00478b58
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 + 0xa60]
call fcn.00435458
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f9828
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1555c]
lea eax, [ebp - 0x20]
mov ecx, 0x4f9d14
call fcn.00403f98
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa60]
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 + 0x15194]
cmp byte [eax + ebx*8 + 0xe], 2
jne 0x4f987d
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004fd5c0
push 0
push 0
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.005070b4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15194]
mov dword [edx + ebx*8 + 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
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 + 0x15194]
add eax, dword [ecx + edx*8 + 0x24]
add eax, 4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15194]
mov dword [edx + ebx*8 + 0x10], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, 0x14ab0
call fcn.0040670c
call fcn.00402874
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x14ab0
call fcn.00406a08
call fcn.00402874
push 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, 0x14ab0
mov ecx, 4
call fcn.004065a0
call fcn.00402874
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15194]
cmp dword [eax + ebx*8 + 0x24], 0
jle 0x4f996c
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 + 0x15194]
mov ecx, dword [edx + eax*8 + 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14508]
mov eax, dword [ebp - 4]
add eax, 0x14ab0
call fcn.004065a0
call fcn.00402874
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14508]
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 + 0x15194]
cmp byte [edx + eax*8 + 0x28], 0
jne 0x4f999c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15194]
mov byte [edx + eax*8 + 0x28], 1
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15194]
cmp byte [edx + eax*8 + 0x28], 3
jne 0x4f99ba
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x15194]
mov byte [edx + eax*8 + 0x28], 4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x15564], 1
jne 0x4f99d0
mov eax, dword [ebp - 4]
mov byte [eax + 0x15564], 2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x15564], 3
jne 0x4f99e6
mov eax, dword [ebp - 4]
mov byte [eax + 0x15564], 0
mov eax, 0x4f9cb8
call fcn.00409764
mov eax, dword [ebp - 4]
add eax, 0x14ab0
call fcn.00406604
call fcn.00402874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f9a30
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14aa0]
test esi, esi
je 0x4f9b5e
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x144b4]
cmp eax, ebx
jle 0x4f9aec
lea ecx, [ebp - 0x104]
mov edx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14aa0]
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, 0x4f9ccc
call fcn.00404238
test eax, eax
jle 0x4f9b5e
mov eax, dword [ebp - 4]
inc dword [eax + 0x144b4]
lea ecx, [ebp - 0x108]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x144b4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14aa0]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 4]
add eax, 0x14aac
call fcn.00403d20
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004d2cb8
jmp 0x4f9b5e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14aa0]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4f9b5e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14aac]
mov eax, 0x4f9ccc
call fcn.00404238
test eax, eax
jle 0x4f9b48
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x144b4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0c]
call fcn.00465370
call fcn.00463028
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x144f0], ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004cd24c
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14aa0], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x144b4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9bc9
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