Function at 0x508134
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1e
push 0
push 0
dec ecx
jne 0x50813c
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x508efd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
mov eax, dword [ebp - 4]
call fcn.004ffb78
cmp byte [ebp - 5], 0
je 0x508178
lea eax, [ebp - 0x1c]
mov edx, 0x508f14
call fcn.00405280
jmp 0x508185
lea eax, [ebp - 0x1c]
mov edx, 0x508f24
call fcn.00405280
mov byte [ebp - 0x41], 0
lea eax, [ebp - 0x60]
mov ecx, 0x508f34
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x180]
call fcn.004054f8
mov eax, dword [ebp - 0x60]
call fcn.0040a2a8
test al, al
je 0x50820e
lea eax, [ebp - 0x64]
mov ecx, 0x508f44
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x158]
call fcn.004054f8
mov eax, dword [ebp - 0x64]
call fcn.0040a2f0
push 0xffffffffffffffff
lea eax, [ebp - 0x68]
mov ecx, 0x508f70
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x158]
call fcn.004054f8
mov eax, dword [ebp - 0x68]
call fcn.004056ac
push eax
lea eax, [ebp - 0x6c]
mov ecx, 0x508f34
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x180]
call fcn.004054f8
mov eax, dword [ebp - 0x6c]
call fcn.004056ac
push eax
call sub.kernel32.dll_CopyFileA
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
call fcn.004dbef4
dec eax
test eax, eax
jl 0x508e62
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1a], 0
je 0x50825b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
call fcn.004c6800
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 0x1a], al
mov byte [ebp - 0x42], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
call fcn.004dbed0
mov dl, byte [ebp - 5]
call fcn.004dc0c0
test al, al
je 0x508e56
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
call fcn.004dbed0
cmp dword [eax + 8], 0
jne 0x508449
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
call fcn.004dbed0
mov eax, dword [eax + 0x14]
mov edx, 0x508fb0
call fcn.004055f8
jne 0x5082e2
push 0x508fbc
push dword [ebp - 0x1c]
push 0x508fd4
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 4]
call fcn.00511784
jmp 0x508307
push 0x508fbc
push dword [ebp - 0x1c]
push 0x508ff0
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.00511784
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
call fcn.004fdcf8
test al, al
je 0x508ed2
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x270]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
call fcn.004c7424
test al, al
je 0x50840b
mov edx, 0x509014
mov eax, dword [ebp - 4]
call fcn.00511784
lea edx, [ebp - 0x43]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
call fcn.004c6d88
test al, al
je 0x508372
mov al, byte [ebp - 0x42]
or al, byte [ebp - 0x43]
mov byte [ebp - 0x42], al
cmp byte [ebp - 0x42], 0
jne 0x508396
lea edx, [ebp - 0x43]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
call fcn.004c6d88
test al, al
je 0x508396
mov al, byte [ebp - 0x42]
or al, byte [ebp - 0x43]
mov byte [ebp - 0x42], al
cmp byte [ebp - 0x42], 0
jne 0x5083ba
lea edx, [ebp - 0x43]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
call fcn.004c6d88
test al, al
je 0x5083ba
mov al, byte [ebp - 0x42]
or al, byte [ebp - 0x43]
mov byte [ebp - 0x42], al
cmp byte [ebp - 0x42], 0
jne 0x5083de
lea edx, [ebp - 0x43]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
call fcn.004c6d88
test al, al
je 0x5083de
mov al, byte [ebp - 0x42]
or al, byte [ebp - 0x43]
mov byte [ebp - 0x42], al
cmp byte [ebp - 0x42], 0
jne 0x508402
lea edx, [ebp - 0x43]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
call fcn.004c6d88
test al, al
je 0x508402
mov al, byte [ebp - 0x42]
or al, byte [ebp - 0x43]
mov byte [ebp - 0x42], al
mov byte [ebp - 0x1d], 1
jmp 0x508602
mov edx, 0x509058
mov eax, dword [ebp - 4]
call fcn.00511784
cmp dword [ebp - 0xc], 5
jne 0x50842d
mov edx, 0x509088
mov eax, dword [ebp - 4]
call fcn.00511784
jmp 0x508437
push 0x1388
call sub.kernel32.dll_Sleep_1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 6
jne 0x508312
jmp 0x508602
push 0x5090b8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
call fcn.004dbed0
push dword [eax + 8]
push 0x5090dc
lea eax, [ebp - 0x78]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 4]
call fcn.00511784
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
call fcn.004c751c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
call fcn.004dbed0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
call fcn.004fdcf8
test al, al
je 0x508ed2
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
call fcn.004c7364
sub al, 1
jb 0x5084f0
je 0x508567
dec al
je 0x50852f
jmp 0x5085a3
push 0x5090e8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
call fcn.004dbed0
push dword [eax + 8]
push 0x5090dc
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 4]
call fcn.00511784
mov byte [ebp - 0x1d], 1
jmp 0x5085fe
push 0x50912c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
call fcn.004dbed0
push dword [eax + 8]
push 0x5090dc
lea eax, [ebp - 0x80]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 4]
call fcn.00511784
jmp 0x5085a3
push 0x50915c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
call fcn.004dbed0
push dword [eax + 8]
push 0x5090dc
lea eax, [ebp - 0x84]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 4]
call fcn.00511784
cmp dword [ebp - 0xc], 5
jne 0x5085e7
push 0x50918c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
call fcn.004dbed0
push dword [eax + 8]
push 0x5091a4
lea eax, [ebp - 0x88]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 4]
call fcn.00511784
jmp 0x5085f1
push 0x1388
call sub.kernel32.dll_Sleep_1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 6
jne 0x5084ac
mov byte [ebp - 0x42], 1
cmp byte [ebp - 0x1d], 0
je 0x508e56
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
call fcn.004dbed0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x508e56
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x14]
call fcn.00419f74
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 0x25], 0
jne 0x508e4a
mov eax, dword [ebp - 0x5c]
mov al, byte [eax + 0x24]
cmp al, byte [ebp - 5]
jne 0x508e4a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1a], 0
je 0x508689
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
call fcn.004c6800
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 0x1a], al
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 8]
call fcn.0040a714
mov eax, dword [ebp - 0x8c]
call fcn.0040a2f0
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 4]
call fcn.004fdcf8
test al, al
je 0x508ed2
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
mov ecx, 0x5091cc
mov edx, dword [ebp - 0x5c]
mov edx, dword [edx + 8]
call fcn.004054f8
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x30], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x190], 0
jne 0x508797
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x14], 0
jne 0x508719
cmp dword [eax + 0x10], 0
jae 0x508797
jmp 0x50871b
jge 0x508797
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
call fcn.004c6acc
test al, al
jne 0x508797
mov dword [ebp - 0x30], 0x500000
mov dword [ebp - 0x2c], 0
push 0x5091e4
mov eax, dword [ebp - 0x5c]
push dword [eax + 4]
push 0x50920c
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
shrd eax, edx, 0x14
shr edx, 0x14
push edx
push eax
lea eax, [ebp - 0x94]
call fcn.00409dd8
push dword [ebp - 0x94]
push 0x509220
lea eax, [ebp - 0x90]
mov edx, 5
call fcn.0040556c
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 4]
call fcn.00511784
lea eax, [ebp - 0x98]
mov ecx, 0x50922c
mov edx, dword [ebp - 0x18]
call fcn.004054f8
mov eax, dword [ebp - 0x98]
call fcn.0040a2a8
test al, al
je 0x508814
cmp byte [ebp - 0x42], 0
je 0x508814
push 0x50923c
mov eax, dword [ebp - 0x5c]
push dword [eax + 4]
push 0x509268
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
shrd eax, edx, 0x14
shr edx, 0x14
push edx
push eax
lea eax, [ebp - 0xa0]
call fcn.00409dd8
push dword [ebp - 0xa0]
push 0x509274
lea eax, [ebp - 0x9c]
mov edx, 5
call fcn.0040556c
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 4]
call fcn.00511784
jmp 0x508867
push 0x509284
mov eax, dword [ebp - 0x5c]
push dword [eax + 4]
push 0x509268
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
shrd eax, edx, 0x14
shr edx, 0x14
push edx
push eax
lea eax, [ebp - 0xa8]
call fcn.00409dd8
push dword [ebp - 0xa8]
push 0x509274
lea eax, [ebp - 0xa4]
mov edx, 5
call fcn.0040556c
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 4]
call fcn.00511784
mov eax, dword [ebp - 4]
cmp byte [eax + 0x190], 0
jne 0x50898e
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
lea eax, [ebp - 0x45]
call fcn.00481674
mov byte [ebp - 0x44], al
cmp byte [ebp - 0x45], 0
je 0x5088ce
mov edx, 0x5092a0
mov eax, dword [ebp - 4]
call fcn.00511784
mov eax, dword [ebp - 4]
add eax, 0x238
mov edx, 0x5092a0
call fcn.0040523c
mov eax, dword [ebp - 0x5c]
mov byte [eax + 0x25], 0
mov dword [ebp - 0x38], 0x2710
mov eax, dword [ebp - 4]
mov byte [eax + 0x258], 1
mov byte [ebp - 6], 0
jmp 0x508ed2
cmp byte [ebp - 0x44], 0
je 0x50898e
push 0x5092c8
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
shrd eax, edx, 0x14
shr edx, 0x14
push edx
push eax
lea eax, [ebp - 0xac]
call fcn.00409dd8
push dword [ebp - 0xac]
push 0x50931c
lea eax, [ebp - 0xb0]
call fcn.00481430
push dword [ebp - 0xb0]
push 0x509328
mov eax, dword [ebp - 4]
add eax, 0x238
mov edx, 5
call fcn.0040556c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x238]
mov eax, dword [ebp - 4]
call fcn.00511784
lea eax, [ebp - 0xb4]
call fcn.00481430
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 4]
call fcn.00511784
mov dl, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
call fcn.004c679c
test al, al
je 0x50896d
call fcn.00480f84
mov eax, dword [ebp - 0x5c]
mov byte [eax + 0x25], 0
mov dword [ebp - 0x38], 0x2710
mov eax, dword [ebp - 4]
mov byte [eax + 0x258], 1
mov byte [ebp - 6], 0
jmp 0x508ed2
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.004ff948
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x4fe27c
lea eax, [ebp - 0x40]
push eax
mov al, byte [ebp - 0x42]
push eax
mov ecx, 0x50922c
lea eax, [ebp - 0xb8]
mov edx, dword [ebp - 0x18]
call fcn.004054f8
mov ecx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
call fcn.004c6b90
sub al, 1
jb 0x508b45
je 0x5089f4
dec al
je 0x508a53
jmp 0x508b54
push 0x509334
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x24]
mov ecx, 0x3e8
xor edx, edx
div ecx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xc0]
call fcn.00409dd8
push dword [ebp - 0xc0]
push 0x509358
lea eax, [ebp - 0xbc]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 4]
call fcn.00511784
mov eax, dword [ebp - 0x5c]
mov byte [eax + 0x25], 1
xor eax, eax
mov dword [ebp - 0x38], eax
jmp 0x508b61
mov eax, dword [ebp - 4]
call fcn.004fd7fc
add eax, 0x100000
adc edx, 0
cmp edx, dword [ebp - 0x3c]
jne 0x508a6f
cmp eax, dword [ebp - 0x40]
ja 0x508ac8
jmp 0x508a71
jg 0x508ac8
mov dword [ebp - 0x38], 5
mov eax, dword [ebp - 4]
add eax, 0x238
mov edx, 0x50936c
call fcn.0040523c
push 0x5093b0
mov eax, dword [ebp - 0x5c]
push dword [eax + 4]
push 0x5093d0
lea eax, [ebp - 0xc4]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 4]
call fcn.00511784
mov byte [ebp - 0x41], 1
mov eax, dword [ebp - 0x5c]
mov byte [eax + 0x25], 0
jmp 0x508ed2
inc dword [ebp - 0x38]
cmp dword [ebp - 0xc], 5
jge 0x508aff
push 0x5093b0
mov eax, dword [ebp - 0x5c]
push dword [eax + 4]
push 0x509400
lea eax, [ebp - 0xc8]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 4]
call fcn.00511784
push 0x1388
call sub.kernel32.dll_Sleep_1
cmp byte [ebp - 0x42], 0
jne 0x508b35
mov ecx, 0x50922c
lea eax, [ebp - 0xcc]
mov edx, dword [ebp - 0x18]
call fcn.004054f8
mov eax, dword [ebp - 0xcc]
call fcn.004056ac
push eax
call sub.kernel32.dll_DeleteFileA
jmp 0x508b54
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x178]
call fcn.004c751c
jmp 0x508b54
mov edx, 0x509418
mov eax, dword [ebp - 4]
call fcn.00511784
jmp 0x508b61
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 6
jne 0x5086ac
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 0x25], 0
je 0x508dfc
mov ecx, 0x50922c
lea eax, [ebp - 0xd0]
mov edx, dword [ebp - 0x18]
call fcn.004054f8
mov eax, dword [ebp - 0xd0]
call fcn.004dc810
mov eax, dword [ebp - 0x18]
call fcn.004dc810
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 8]
call fcn.004dc810
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 8]
call fcn.004056ac
push eax
call sub.kernel32.dll_DeleteFileA
mov ecx, 0x50922c
lea eax, [ebp - 0xd4]
mov edx, dword [ebp - 0x18]
call fcn.004054f8
mov edx, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004fd858
test al, al
jne 0x508c4b
push 0x509454
push dword [ebp - 0x18]
push 0x50922c
lea eax, [ebp - 0xd8]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 4]
call fcn.00511784
push 0x509454
push dword [ebp - 0x18]
push 0x50922c
mov eax, dword [ebp - 4]
add eax, 0x238
mov edx, 3
call fcn.0040556c
mov ecx, 0x50922c
lea eax, [ebp - 0xdc]
mov edx, dword [ebp - 0x18]
call fcn.004054f8
mov eax, dword [ebp - 0xdc]
call fcn.004056ac
push eax
call sub.kernel32.dll_DeleteFileA
jmp 0x508ed2
push 0xb
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 8]
call fcn.004056ac
push eax
mov eax, dword [ebp - 0x18]
call fcn.004056ac
push eax
call sub.kernel32.dll_MoveFileExA
test eax, eax
jne 0x508daa
mov eax, dword [ebp - 0x18]
call fcn.0040a2a8
test al, al
je 0x508cbf
push 0x509484
mov eax, dword [ebp - 0x5c]
push dword [eax + 8]
push 0x5094a4
lea eax, [ebp - 0xe0]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp - 4]
call fcn.00511784
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x508daa
mov eax, dword [ebp - 4]
call fcn.004fd7fc
add eax, 0x100000
adc edx, 0
push edx
push eax
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
shld edx, eax, 1
add eax, eax
cmp edx, dword [esp + 4]
jne 0x508cec
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x508d20
jmp 0x508cf0
pop edx
pop eax
jle 0x508d20
push 0x5094bc
mov eax, dword [ebp - 0x5c]
push dword [eax + 8]
push 0x5094dc
lea eax, [ebp - 0xe4]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp - 4]
call fcn.00511784
jmp 0x508d9f
mov eax, dword [ebp - 4]
call fcn.004fd6e0
test al, al
je 0x508d71
push 0x509484
mov eax, dword [ebp - 0x5c]
push dword [eax + 8]
push 0x5094f8
lea eax, [ebp - 0xe8]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0xe8]
mov eax, dword [ebp - 4]
call fcn.00511784
mov eax, dword [ebp - 4]
add eax, 0x238
mov edx, 0x509514
call fcn.0040523c
jmp 0x508ed2
push 0x509484
mov eax, dword [ebp - 0x5c]
push dword [eax + 8]
push 0x509554
lea eax, [ebp - 0xec]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0xec]
mov eax, dword [ebp - 4]
call fcn.00511784
mov byte [ebp - 0x41], 1
mov eax, dword [ebp - 0x5c]
mov byte [eax + 0x25], 0
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 0x25], 0
je 0x508dfc
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x14], 0
jne 0x508dc4
cmp dword [eax + 0x10], 0
jae 0x508ddc
jmp 0x508dc6
jge 0x508ddc
mov eax, dword [ebp - 4]
add dword [eax + 0x1b8], 0x500000
adc dword [eax + 0x1bc], 0
jmp 0x508df4
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 4]
add dword [ecx + 0x1b8], eax
adc dword [ecx + 0x1bc], edx
mov eax, dword [ebp - 4]
call fcn.0050a148
cmp dword [ebp - 0x38], 0xa
jle 0x508e4a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
call fcn.004dbef4
test eax, eax
jle 0x508e4a
cmp byte [ebp - 0x41], 0
jne 0x508e4a
push 0x5093b0
mov eax, dword [ebp - 0x5c]
push dword [eax + 4]
push 0x509568
lea eax, [ebp - 0xf0]
mov edx, 3
call fcn.0040556c
mov edx, dword [ebp - 0xf0]
mov eax, dword [ebp - 4]
call fcn.00511784
jmp 0x508e56
inc dword [ebp - 0x14]
dec dword [ebp - 0x58]
jne 0x50863d
inc dword [ebp - 0x10]
dec dword [ebp - 0x4c]
jne 0x508237
inc dword [ebp - 0x34]
cmp dword [ebp - 0x34], 3
jne 0x508215
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
call fcn.004dbef4
dec eax
test eax, eax
jl 0x508ece
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x194]
call fcn.004dbed0
mov dl, byte [ebp - 5]
call fcn.004dc0c0
test al, al
je 0x508ec6
mov eax, dword [ebp - 4]
add eax, 0x238
mov edx, 0x509584
call fcn.0040523c
mov eax, dword [ebp - 4]
mov byte [eax + 0x258], 1
inc dword [ebp - 0x10]
dec dword [ebp - 0x4c]
jne 0x508e8d
mov byte [ebp - 6], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x508f04
lea eax, [ebp - 0xf0]
mov edx, 0x25
call fcn.0040520c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040520c
ret