Function at 0x57f31c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x5b
push 0
push 0
dec ecx
jne 0x57f325
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004051e0
mov eax, dword [ebp - 8]
call fcn.004051e0
mov eax, dword [ebp + 0x28]
call fcn.004051e0
mov eax, dword [ebp + 0x24]
call fcn.004051e0
mov eax, dword [ebp + 0x20]
call fcn.004051e0
mov eax, dword [ebp + 0x1c]
call fcn.004051e0
mov eax, dword [ebp + 0x18]
call fcn.004051e0
mov eax, dword [ebp + 0x14]
call fcn.004051e0
mov eax, dword [ebp + 0x10]
call fcn.004051e0
mov eax, dword [ebp + 0xc]
call fcn.004051e0
xor eax, eax
push ebp
push 0x5803b7
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x580368
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x1ec]
mov eax, dword [0x5a5f50]
mov eax, dword [eax]
call fcn.004a0248
mov eax, dword [ebp - 0x1ec]
lea edx, [ebp - 0x1e8]
call fcn.0040a380
mov edx, dword [ebp - 0x1e8]
lea eax, [ebp - 0x10]
mov ecx, 0x5803d4
call fcn.0040503c
mov eax, dword [ebp - 0x10]
call fcn.004d9000
test al, al
jne 0x57f47c
mov eax, dword [ebp - 0x10]
call fcn.004d9008
test al, al
jne 0x57f47c
lea edx, [ebp - 0x1f4]
mov eax, dword [ebp - 0x10]
call fcn.0040940c
mov ecx, dword [ebp - 0x1f4]
lea eax, [ebp - 0x1f0]
mov edx, 0x5803e8
call fcn.0040503c
mov edx, dword [ebp - 0x1f0]
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov ecx, 2
call fcn.005978d0
push 0x580408
push dword [ebp - 4]
push 0x580418
lea eax, [ebp - 0x1f8]
mov edx, 3
call fcn.004050b0
mov edx, dword [ebp - 0x1f8]
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov ecx, 2
call fcn.005978d0
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x580372
lea edx, [ebp - 0x200]
mov eax, dword [0x5a5f50]
mov eax, dword [eax]
call fcn.004a0248
mov eax, dword [ebp - 0x200]
lea edx, [ebp - 0x1fc]
call fcn.0040a380
push dword [ebp - 0x1fc]
push 0x580434
push dword [ebp - 4]
push 0x580448
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004050b0
mov eax, dword [ebp - 0x14]
call fcn.00409f60
test al, al
je 0x57f6eb
mov eax, dword [0x5a5aa8]
cmp byte [eax], 0
je 0x57f6eb
push 0x580458
push dword [ebp - 4]
push 0x580468
lea eax, [ebp - 0x204]
mov edx, 3
call fcn.004050b0
mov edx, dword [ebp - 0x204]
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov ecx, 1
call fcn.005978d0
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.005858d0
push edx
push eax
mov eax, dword [0x5a58e4]
mov eax, dword [eax]
shl eax, 0xa
cdq
cmp edx, dword [esp + 4]
jne 0x57f53b
cmp eax, dword [esp]
pop edx
pop eax
jae 0x57f6eb
jmp 0x57f543
pop edx
pop eax
jge 0x57f6eb
mov al, 1
mov edx, dword [0x5a5ba4]
cmp byte [edx], 0
je 0x57f61f
mov eax, dword [0x5a5c18]
mov eax, dword [eax]
call fcn.004d9000
test al, al
jne 0x57f5ac
mov eax, dword [0x5a5c18]
mov eax, dword [eax]
call fcn.004d9008
test al, al
jne 0x57f5ac
push 0x58048c
mov eax, dword [0x5a5c18]
push dword [eax]
push 0x58049c
lea eax, [ebp - 0x208]
mov edx, 3
call fcn.004050b0
mov edx, dword [ebp - 0x208]
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov ecx, 2
call fcn.005978d0
lea edx, [ebp - 0x20c]
mov eax, dword [0x5a5c18]
mov eax, dword [eax]
call fcn.0040eca4
push dword [ebp - 0x20c]
push dword [ebp - 4]
push 0x5804c0
call fcn.0040c0ac
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x210]
mov eax, 0x5804cc
call fcn.0040cdb0
push dword [ebp - 0x210]
push 0x5804e8
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.004050b0
push 0
mov eax, dword [ebp - 0x18]
call fcn.004051f0
push eax
mov eax, dword [ebp - 0x14]
call fcn.004051f0
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x57f6eb
mov eax, dword [ebp - 0x14]
call fcn.0040a254
test al, al
jne 0x57f6eb
push 0x580458
push dword [ebp - 4]
push 0x5804f8
lea eax, [ebp - 0x214]
mov edx, 3
call fcn.004050b0
mov edx, dword [ebp - 0x214]
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov ecx, 2
call fcn.005978d0
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0040a138
mov eax, dword [ebp - 0x14]
call fcn.0040a254
test al, al
jne 0x57f6b7
push 0x580458
push dword [ebp - 4]
push 0x580528
lea eax, [ebp - 0x218]
mov edx, 3
call fcn.004050b0
mov edx, dword [ebp - 0x218]
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov ecx, 2
call fcn.005978d0
jmp 0x57f6eb
push 0x580458
push dword [ebp - 4]
push 0x580564
lea eax, [ebp - 0x21c]
mov edx, 3
call fcn.004050b0
mov edx, dword [ebp - 0x21c]
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov ecx, 2
call fcn.005978d0
push 0x580458
push dword [ebp - 4]
push 0x580584
lea eax, [ebp - 0x220]
mov edx, 3
call fcn.004050b0
mov edx, dword [ebp - 0x220]
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov ecx, 1
call fcn.005978d0
mov eax, dword [ebp + 8]
dec eax
je 0x57f733
sub eax, 2
je 0x57fd9a
jmp 0x58035e
xor eax, eax
push ebp
push 0x57fc5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00409f60
test al, al
je 0x57f77a
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0040a138
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1e4]
call fcn.00402f9c
lea eax, [ebp - 0x1e4]
call fcn.00402d38
call fcn.00402940
jmp 0x57f83b
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0040a138
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1e4]
call fcn.00402f9c
lea eax, [ebp - 0x1e4]
call fcn.00402d2c
call fcn.00402940
mov edx, 0x5805a0
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
xor edx, edx
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
mov edx, 0x5805ec
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
mov edx, 0x580624
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
mov edx, 0x580658
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
mov edx, 0x5805a0
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
xor edx, edx
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
xor edx, edx
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x224]
mov ecx, dword [ebp - 4]
mov edx, 0x580698
call fcn.0040503c
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
xor edx, edx
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
push 0x5806b8
call fcn.0040c04c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x22c]
mov eax, 0x5806d4
call fcn.0040cdb0
push dword [ebp - 0x22c]
push 0x5806ec
call fcn.0040c078
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x230]
mov eax, 0x5806f8
call fcn.0040cdb0
push dword [ebp - 0x230]
lea eax, [ebp - 0x228]
mov edx, 4
call fcn.004050b0
mov edx, dword [ebp - 0x228]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x234]
mov ecx, dword [ebp - 8]
mov edx, 0x58070c
call fcn.0040503c
mov edx, dword [ebp - 0x234]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x238]
mov ecx, dword [ebp + 0x28]
mov edx, 0x580728
call fcn.0040503c
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x23c]
mov ecx, dword [ebp + 0x14]
mov edx, 0x580744
call fcn.0040503c
mov edx, dword [ebp - 0x23c]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x240]
mov ecx, dword [ebp + 0x10]
mov edx, 0x580760
call fcn.0040503c
mov edx, dword [ebp - 0x240]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x244]
mov ecx, dword [ebp + 0xc]
mov edx, 0x58077c
call fcn.0040503c
mov edx, dword [ebp - 0x244]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x248]
mov ecx, dword [ebp + 0x24]
mov edx, 0x580798
call fcn.0040503c
mov edx, dword [ebp - 0x248]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x24c]
mov ecx, dword [ebp + 0x20]
mov edx, 0x5807b4
call fcn.0040503c
mov edx, dword [ebp - 0x24c]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea edx, [ebp - 0x250]
mov eax, dword [ebp + 0x1c]
call fcn.0040967c
cmp dword [ebp - 0x250], 0
je 0x57faae
lea eax, [ebp - 0x254]
mov ecx, dword [ebp + 0x1c]
mov edx, 0x5807d0
call fcn.0040503c
mov edx, dword [ebp - 0x254]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x258]
mov ecx, dword [ebp + 0x18]
mov edx, 0x5807ec
call fcn.0040503c
mov edx, dword [ebp - 0x258]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x25c]
mov ecx, dword [ebp - 0x14]
mov edx, 0x580808
call fcn.0040503c
mov edx, dword [ebp - 0x25c]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
mov edx, 0x580824
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
push 0x580458
push dword [ebp - 4]
push 0x58086c
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.004050b0
mov edx, dword [ebp - 0x260]
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov ecx, 1
call fcn.005978d0
xor eax, eax
push ebp
push 0x57fc47
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e4]
call fcn.00403118
call fcn.00402940
mov eax, dword [0x5a5a30]
cmp byte [eax], 0
je 0x57fc3d
push 0
lea edx, [ebp - 0x264]
mov eax, dword [ebp + 0x28]
call fcn.0040eca4
lea eax, [ebp - 0x264]
push eax
lea edx, [ebp - 0x268]
mov eax, dword [ebp - 0x14]
call fcn.0040a49c
mov edx, dword [ebp - 0x268]
pop eax
call fcn.00404ff8
mov eax, dword [ebp - 0x264]
call fcn.004051f0
push eax
mov eax, dword [ebp - 0x14]
call fcn.004051f0
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x57fc09
push 0x580458
push dword [ebp - 4]
push 0x580884
lea eax, [ebp - 0x26c]
mov edx, 3
call fcn.004050b0
mov edx, dword [ebp - 0x26c]
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov ecx, 5
call fcn.005978d0
jmp 0x57fc3d
push 0x580458
push dword [ebp - 4]
push 0x5808a4
lea eax, [ebp - 0x270]
mov edx, 3
call fcn.004050b0
mov edx, dword [ebp - 0x270]
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov ecx, 2
call fcn.005978d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57fc51
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58035e
xor eax, eax
push ebp
push 0x580227
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00409f60
test al, al
je 0x57fdd7
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1e4]
call fcn.00402f9c
lea eax, [ebp - 0x1e4]
call fcn.00402d38
call fcn.00402940
jmp 0x57fe8e
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1e4]
call fcn.00402f9c
lea eax, [ebp - 0x1e4]
call fcn.00402d2c
call fcn.00402940
mov edx, 0x5805a0
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
xor edx, edx
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
mov edx, 0x5805ec
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
mov edx, 0x580624
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
mov edx, 0x580658
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
mov edx, 0x5805a0
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
xor edx, edx
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
xor edx, edx
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x288]
mov ecx, dword [ebp - 4]
mov edx, 0x580698
call fcn.0040503c
mov edx, dword [ebp - 0x288]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
xor edx, edx
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
push 0x5806b8
call fcn.0040c04c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x290]
mov eax, 0x5806d4
call fcn.0040cdb0
push dword [ebp - 0x290]
push 0x5806ec
call fcn.0040c078
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x294]
mov eax, 0x5806f8
call fcn.0040cdb0
push dword [ebp - 0x294]
lea eax, [ebp - 0x28c]
mov edx, 4
call fcn.004050b0
mov edx, dword [ebp - 0x28c]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x298]
mov ecx, dword [ebp - 8]
mov edx, 0x58070c
call fcn.0040503c
mov edx, dword [ebp - 0x298]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x29c]
mov ecx, dword [ebp + 0x28]
mov edx, 0x580728
call fcn.0040503c
mov edx, dword [ebp - 0x29c]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x2a0]
mov ecx, dword [ebp + 0x24]
mov edx, 0x580798
call fcn.0040503c
mov edx, dword [ebp - 0x2a0]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x2a4]
mov ecx, dword [ebp + 0x20]
mov edx, 0x5807b4
call fcn.0040503c
mov edx, dword [ebp - 0x2a4]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea edx, [ebp - 0x2a8]
mov eax, dword [ebp + 0x1c]
call fcn.0040967c
cmp dword [ebp - 0x2a8], 0
je 0x580077
lea eax, [ebp - 0x2ac]
mov ecx, dword [ebp + 0x1c]
mov edx, 0x5807d0
call fcn.0040503c
mov edx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x2b0]
mov ecx, dword [ebp + 0x18]
mov edx, 0x5807ec
call fcn.0040503c
mov edx, dword [ebp - 0x2b0]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
lea eax, [ebp - 0x2b4]
mov ecx, dword [ebp - 0x14]
mov edx, 0x580808
call fcn.0040503c
mov edx, dword [ebp - 0x2b4]
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
mov edx, 0x580824
lea eax, [ebp - 0x1e4]
call fcn.0040540c
call fcn.00403968
call fcn.00402940
push 0x580458
push dword [ebp - 4]
push 0x58086c
lea eax, [ebp - 0x2b8]
mov edx, 3
call fcn.004050b0
mov edx, dword [ebp - 0x2b8]
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov ecx, 1
call fcn.005978d0
xor eax, eax
push ebp
push 0x580210
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e4]
call fcn.00403118
call fcn.00402940
mov eax, dword [0x5a5a30]
cmp byte [eax], 0
je 0x580206
push 0
lea edx, [ebp - 0x2bc]
mov eax, dword [ebp + 0x28]
call fcn.0040eca4
lea eax, [ebp - 0x2bc]
push eax
lea edx, [ebp - 0x2c0]
mov eax, dword [ebp - 0x14]
call fcn.0040a49c
mov edx, dword [ebp - 0x2c0]
pop eax
call fcn.00404ff8
mov eax, dword [ebp - 0x2bc]
call fcn.004051f0
push eax
mov eax, dword [ebp - 0x14]
call fcn.004051f0
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x5801d2
push 0x580458
push dword [ebp - 4]
push 0x580884
lea eax, [ebp - 0x2c4]
mov edx, 3
call fcn.004050b0
mov edx, dword [ebp - 0x2c4]
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov ecx, 5
call fcn.005978d0
jmp 0x580206
push 0x580458
push dword [ebp - 4]
push 0x5808a4
lea eax, [ebp - 0x2c8]
mov edx, 3
call fcn.004050b0
mov edx, dword [ebp - 0x2c8]
mov eax, dword [0x5a5d58]
mov eax, dword [eax]
mov ecx, 2
call fcn.005978d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58021a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58035e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x580372
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5803be
lea eax, [ebp - 0x2dc]
mov edx, 0x3e
call fcn.00404d54
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404d54
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d54
lea eax, [ebp + 0xc]
mov edx, 8
call fcn.00404d54
ret