Function at 0x4a4298
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xed
push 0
push 0
dec ecx
jne 0x4a42a0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a496c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004b3ad4
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x744]
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.004507ac
mov eax, dword [ebp - 0x744]
lea edx, [ebp - 0x740]
call fcn.00409560
mov edx, dword [ebp - 0x740]
lea eax, [ebp - 0xc]
mov ecx, 0x4a4984
call fcn.00403eb0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4ff94]
lea eax, [ebp - 0x14]
mov ecx, 0x4a4984
call fcn.00403eb0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4ff90]
lea eax, [ebp - 0x10]
mov ecx, 0x4a4998
call fcn.00403eb0
lea eax, [ebp - 0x24]
mov edx, 0x4a49a8
call fcn.00403c7c
mov eax, dword [ebp - 0xc]
call fcn.0040947c
test al, al
jne 0x4a436f
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00403c7c
lea eax, [ebp - 0x24]
mov edx, 0x4a49bc
call fcn.00403c7c
mov eax, dword [ebp - 0xc]
call fcn.0040947c
test al, al
jne 0x4a436f
lea eax, [ebp - 0x24]
call fcn.00403be4
push 0x3e8
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004b6dd8
dec eax
jne 0x4a4893
push dword [ebp - 0x24]
push 0x4a49cc
push 0x4a49dc
push 0x4a49e8
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00403f24
xor edx, edx
push ebp
push 0x4a486a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x64
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x170]
call fcn.0040633e
mov eax, dword [0x4cf300]
mov byte [eax], 0
mov edx, 1
lea eax, [ebp - 0x170]
call fcn.00406841
call fcn.00402854
mov edx, 0x400
lea eax, [ebp - 0x170]
call fcn.00406878
call fcn.00402854
push 0
lea edx, [ebp - 0x15]
mov ecx, 1
lea eax, [ebp - 0x170]
call fcn.004063e0
call fcn.00402854
push 0
lea edx, [ebp - 0x570]
mov ecx, 0x400
lea eax, [ebp - 0x170]
call fcn.004063e0
call fcn.00402854
lea eax, [ebp - 0x170]
call fcn.004064a8
call fcn.00402854
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x170]
call fcn.0040633e
mov edx, 1
lea eax, [ebp - 0x170]
call fcn.00406858
call fcn.00402854
push 0
lea edx, [ebp - 0x570]
mov ecx, 0x400
lea eax, [ebp - 0x170]
call fcn.00406444
call fcn.00402854
lea eax, [ebp - 0x170]
call fcn.004064a8
call fcn.00402854
push 2
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004b6dd8
dec eax
jne 0x4a4860
push dword [ebp - 0x24]
push 0x4a49f4
push 0x4a49dc
push 0x4a49e8
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00403f24
mov ebx, 0x400
lea eax, [ebp - 0x570]
mov dl, byte [ebp - 0x15]
sub byte [eax], dl
inc eax
dec ebx
jne 0x4a44d3
mov edx, 1
lea eax, [ebp - 0x170]
call fcn.00406858
call fcn.00402854
push 0
lea edx, [ebp - 0x570]
mov ecx, 0x400
lea eax, [ebp - 0x170]
call fcn.00406444
call fcn.00402854
mov edx, 0xa
lea eax, [ebp - 0x170]
call fcn.00406878
call fcn.00402854
push 0
mov eax, dword [ebp - 4]
lea edx, [eax + 0xb3a0]
mov ecx, 0x1b0
lea eax, [ebp - 0x170]
call fcn.004063e0
call fcn.00402854
lea eax, [ebp - 0x170]
call fcn.004064a8
call fcn.00402854
mov eax, dword [ebp - 0x10]
call fcn.004094c8
call fcn.0040a438
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x1c]
mov edx, 0x4a4a04
call fcn.0040b004
push dword [ebp - 0x24]
lea eax, [ebp - 0x748]
mov edx, dword [ebp - 4]
add edx, 0xb501
call fcn.00403e08
push dword [ebp - 0x748]
push 0x4a49dc
push 0x4a49e8
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00403f24
lea eax, [ebp - 0x74c]
mov edx, dword [ebp - 4]
add edx, 0xb501
call fcn.00403e08
mov eax, dword [ebp - 0x74c]
mov edx, dword [ebp - 0x1c]
call fcn.00403f74
ja 0x4a45e4
mov eax, dword [ebp - 4]
add eax, 0xb501
mov edx, 0x4a4a10
call fcn.00402b64
jae 0x4a4838
mov eax, dword [ebp - 4]
add eax, 0xb50c
mov edx, 0x4a4a1c
call fcn.00402b64
jae 0x4a4609
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4ffa4]
call fcn.00403c7c
mov eax, dword [ebp - 4]
add eax, 0xb50c
mov edx, 0x4a4a1c
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00402be8
jne 0x4a4633
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4ffa0]
call fcn.00403c7c
mov eax, dword [ebp - 4]
add eax, 0xb50c
mov edx, 0x4a4a20
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00402be8
jne 0x4a465d
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4ffa8]
call fcn.00403c7c
mov eax, dword [ebp - 4]
add eax, 0xb50c
mov edx, 0x4a4a24
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00402be8
jne 0x4a4687
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4ffb0]
call fcn.00403c7c
mov eax, dword [ebp - 4]
add eax, 0xb50c
mov edx, 0x4a4a24
call fcn.00402b64
jbe 0x4a46ac
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4ffac]
call fcn.00403c7c
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push 0x4a4a30
lea eax, [ebp - 0x750]
mov edx, dword [ebp - 4]
add edx, 0xb50c
call fcn.00403e08
push dword [ebp - 0x750]
push 0x4a49dc
push 0x4a49e8
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.00403f24
mov eax, dword [ebp - 4]
add eax, 0xb4e0
mov edx, 0x4a4a34
call fcn.00402b64
ja 0x4a4714
mov eax, dword [ebp - 4]
add eax, 0xb4e0
mov edx, 0x4a4a3c
call fcn.00402b64
jae 0x4a4860
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb3cc]
test eax, eax
jle 0x4a4860
cmp eax, 0x33
jge 0x4a4860
mov esi, eax
test esi, esi
jle 0x4a4860
mov ebx, 1
push dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + ebx*4 + 0xb3cc]
add eax, 0x20ad
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x754]
call fcn.0040923c
push dword [ebp - 0x754]
push 0x4a49dc
push 0x4a49e8
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00403f24
lea eax, [ebp - 0x758]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403e64
mov ecx, eax
sub ecx, 3
mov edx, 4
mov eax, dword [ebp - 0x20]
call fcn.0040406c
mov eax, dword [ebp - 0x758]
call fcn.004092e8
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + ebx*4 + 0xb3cc]
add eax, 0x20ad
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4a47c3
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4a482e
mov dword [ebp - 8], 1
lea eax, [ebp - 0x760]
mov edx, dword [ebp - 4]
add edx, 0xb4f6
call fcn.00403e08
mov eax, dword [ebp - 0x760]
lea edx, [ebp - 0x75c]
call fcn.00409058
mov edx, dword [ebp - 0x75c]
mov eax, dword [ebp - 4]
add eax, 0x4ffd0
call fcn.00403c38
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00403f74
je 0x4a4860
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404028
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404028
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x4a4860
inc ebx
dec esi
jne 0x4a473d
jmp 0x4a4860
mov eax, dword [ebp - 0xc]
call fcn.0040947c
test al, al
je 0x4a484c
mov eax, dword [ebp - 0xc]
call fcn.004094c8
mov eax, dword [ebp - 0x14]
call fcn.0040947c
test al, al
je 0x4a4860
mov eax, dword [ebp - 0x14]
call fcn.004094c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a4893
cmp dword [ebp - 8], 1
je 0x4a491f
cmp dword [ebp - 0x24], 0
je 0x4a491f
lea edx, [ebp - 0x768]
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.004507ac
mov eax, dword [ebp - 0x768]
lea edx, [ebp - 0x764]
call fcn.00409560
mov edx, dword [ebp - 0x764]
lea eax, [ebp - 0xc]
mov ecx, 0x4a4a58
call fcn.00403eb0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x73c]
call fcn.0040633e
lea eax, [ebp - 0x73c]
call fcn.00406732
call fcn.00402854
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x73c]
call fcn.004041fc
call fcn.00406977
call fcn.00402854
lea eax, [ebp - 0x73c]
call fcn.004064a8
call fcn.00402854
mov ebx, dword [ebp - 8]
mov ecx, 1
mov edx, 5
mov eax, dword [ebp - 4]
call fcn.004b3b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4973
lea eax, [ebp - 0x768]
mov edx, 0xb
call fcn.00403c08
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403c08
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403c08
ret