Function at 0x4c2fd0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa11
push 0
push 0
dec ecx
jne 0x4c2fd9
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404028
mov eax, dword [ebp - 8]
call fcn.00404028
xor eax, eax
push ebp
push 0x4c3a1c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00409504
cmp eax, 0xffffffff
je 0x4c3044
and eax, 1
dec eax
jne 0x4c3044
push 0
mov ecx, 0x4c3a30
mov edx, 0x4c3a38
mov eax, dword [0x4e6268]
mov eax, dword [eax]
call fcn.004504b4
mov edx, esi
mov eax, ebx
call fcn.004c2920
jmp 0x4c3975
mov eax, dword [ebp - 4]
call fcn.004094f4
test al, al
jne 0x4c305f
lea edx, [ebp - 4]
mov eax, dword [0x4e6268]
mov eax, dword [eax]
call fcn.00450824
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xd0f4]
call fcn.0040634e
mov eax, dword [0x4e6304]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xd0f4]
call fcn.00406885
call fcn.00402864
mov edx, dword [ebp + 8]
lea eax, [ebx + 0xd0f4]
call fcn.004068bc
call fcn.00402864
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xd0f4]
call fcn.004063f0
call fcn.00402864
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xd0f4]
call fcn.004063f0
call fcn.00402864
lea eax, [ebx + 0xd0f4]
call fcn.004064b8
call fcn.00402864
push dword [ebx + 0x5fcd8]
push dword [ebx + 0x5fd28]
push 0x4c3a6c
lea edx, [ebp - 0x502c]
mov eax, dword [ebp - 4]
call fcn.0040960c
push dword [ebp - 0x502c]
push 0x4c3a78
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.00403f34
cmp dword [ebp - 0x10], 0x100
jle 0x4c3215
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xd0f4]
call fcn.0040634e
mov eax, dword [0x4e6304]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xd0f4]
call fcn.00406885
call fcn.00402864
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xd38c]
call fcn.0040634e
mov edx, 1
lea eax, [ebx + 0xd38c]
call fcn.0040689c
call fcn.00402864
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jge 0x4c31f3
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x1c]
cmp eax, 0x5000
jle 0x4c31ae
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x5028]
mov ecx, 0x5000
lea eax, [ebx + 0xd0f4]
call fcn.004063f0
call fcn.00402864
jmp 0x4c31ca
lea edx, [ebp - 0x24]
push edx
mov ecx, eax
lea edx, [ebp - 0x5028]
lea eax, [ebx + 0xd0f4]
call fcn.004063f0
call fcn.00402864
push 0
lea edx, [ebp - 0x5028]
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0xd38c]
call fcn.00406454
call fcn.00402864
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jl 0x4c3180
lea eax, [ebx + 0xd0f4]
call fcn.004064b8
call fcn.00402864
lea eax, [ebx + 0xd38c]
call fcn.004064b8
call fcn.00402864
jmp 0x4c3280
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404038
push eax
mov eax, dword [ebp - 4]
call fcn.00404038
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4c3280
lea eax, [ebp - 0x28]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0040407c
push 0
lea eax, [ebp - 0x5030]
mov ecx, 0x4c3a84
mov edx, dword [ebp - 0x28]
call fcn.00403ec0
mov eax, dword [ebp - 0x5030]
call fcn.00404038
mov edx, eax
mov ecx, 0x4c3a30
mov eax, dword [0x4e6268]
mov eax, dword [eax]
call fcn.004504b4
jmp 0x4c3975
push dword [ebx + 0x5fcd8]
push dword [ebx + 0x5fd28]
push 0x4c3aa8
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403f34
cmp dword [ebp + 8], 0x384
jle 0x4c350a
cmp dword [ebp + 8], 0x3ca
jne 0x4c34c9
lea edx, [ebp - 0x5034]
mov eax, dword [ebx + 0x990]
call fcn.00431e40
mov eax, dword [ebp - 0x5034]
mov edx, 0x4c3a78
call fcn.00403f84
jne 0x4c333a
push 0
mov eax, dword [ebp - 0x18]
call fcn.00404038
push eax
lea edx, [ebp - 0x5040]
mov eax, dword [0x4e6268]
mov eax, dword [eax]
call fcn.00450824
mov eax, dword [ebp - 0x5040]
lea edx, [ebp - 0x503c]
call fcn.004095d8
push dword [ebp - 0x503c]
push 0x4c3ac0
push 0x4c3ad0
lea eax, [ebp - 0x5038]
mov edx, 3
call fcn.00403f34
mov eax, dword [ebp - 0x5038]
call fcn.00404038
push eax
call sub.kernel32.dll_CopyFileA
lea edx, [ebp - 0x5044]
mov eax, dword [ebx + 0x990]
call fcn.00431e40
mov eax, dword [ebp - 0x5044]
mov edx, 0x4c3ae0
call fcn.00403f84
jne 0x4c33bc
push 0
mov eax, dword [ebp - 0x18]
call fcn.00404038
push eax
lea edx, [ebp - 0x5050]
mov eax, dword [0x4e6268]
mov eax, dword [eax]
call fcn.00450824
mov eax, dword [ebp - 0x5050]
lea edx, [ebp - 0x504c]
call fcn.004095d8
push dword [ebp - 0x504c]
push 0x4c3aec
push 0x4c3ad0
lea eax, [ebp - 0x5048]
mov edx, 3
call fcn.00403f34
mov eax, dword [ebp - 0x5048]
call fcn.00404038
push eax
call sub.kernel32.dll_CopyFileA
lea edx, [ebp - 0x5054]
mov eax, dword [ebx + 0x990]
call fcn.00431e40
mov eax, dword [ebp - 0x5054]
mov edx, 0x4c3afc
call fcn.00403f84
jne 0x4c343e
push 0
mov eax, dword [ebp - 0x18]
call fcn.00404038
push eax
lea edx, [ebp - 0x5060]
mov eax, dword [0x4e6268]
mov eax, dword [eax]
call fcn.00450824
mov eax, dword [ebp - 0x5060]
lea edx, [ebp - 0x505c]
call fcn.004095d8
push dword [ebp - 0x505c]
push 0x4c3b08
push 0x4c3ad0
lea eax, [ebp - 0x5058]
mov edx, 3
call fcn.00403f34
mov eax, dword [ebp - 0x5058]
call fcn.00404038
push eax
call sub.kernel32.dll_CopyFileA
lea edx, [ebp - 0x5064]
mov eax, dword [ebx + 0x990]
call fcn.00431e40
mov eax, dword [ebp - 0x5064]
mov edx, 0x4c3b18
call fcn.00403f84
jne 0x4c3581
push 0
mov eax, dword [ebp - 0x18]
call fcn.00404038
push eax
lea edx, [ebp - 0x5070]
mov eax, dword [0x4e6268]
mov eax, dword [eax]
call fcn.00450824
mov eax, dword [ebp - 0x5070]
lea edx, [ebp - 0x506c]
call fcn.004095d8
push dword [ebp - 0x506c]
push 0x4c3b24
push 0x4c3ad0
lea eax, [ebp - 0x5068]
mov edx, 3
call fcn.00403f34
mov eax, dword [ebp - 0x5068]
call fcn.00404038
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x4c3581
mov eax, dword [ebx + 0x780]
cmp byte [eax + 0x47], 1
jne 0x4c34f9
mov eax, dword [ebx + 0xd624]
mov edx, eax
shl eax, 3
sub eax, edx
cmp byte [ebx + eax*8 + 0xd7e6], 0
jne 0x4c34f9
mov edx, dword [ebx + 0xd624]
mov eax, ebx
call fcn.004b8fdc
mov ecx, 2
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.004bae28
jmp 0x4c3581
cmp dword [ebp + 8], 0x364
jne 0x4c354b
lea edx, [ebp - 0x5078]
mov eax, dword [0x4e6268]
mov eax, dword [eax]
call fcn.00450824
mov eax, dword [ebp - 0x5078]
lea edx, [ebp - 0x5074]
call fcn.004095d8
mov edx, dword [ebp - 0x5074]
lea eax, [ebp - 0x18]
mov ecx, 0x4c3b34
call fcn.00403ec0
jmp 0x4c3581
lea edx, [ebp - 0x5080]
mov eax, dword [0x4e6268]
mov eax, dword [eax]
call fcn.00450824
mov eax, dword [ebp - 0x5080]
lea edx, [ebp - 0x507c]
call fcn.004095d8
mov edx, dword [ebp - 0x507c]
lea eax, [ebp - 0x18]
mov ecx, 0x4c3b48
call fcn.00403ec0
mov eax, dword [ebx + 0xc9ec]
call fcn.004094f4
test al, al
je 0x4c35e1
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x5084]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx + 0xc9ec]
mov eax, dword [0x4e93bc]
call fcn.004c2998
mov edx, dword [ebp - 0x5084]
lea eax, [ebp - 0xc]
call fcn.00403c8c
push 9
push 1
lea eax, [ebp - 0x5088]
push eax
mov eax, dword [0x4e93bc]
mov edx, dword [eax + 0xc9f4]
mov ecx, 0x4c3b60
mov eax, dword [0x4e93bc]
call fcn.004e0fe0
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0xd38c]
call fcn.0040634e
mov eax, dword [0x4e6304]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xd38c]
call fcn.00406885
call fcn.00402864
lea eax, [ebx + 0xd38c]
call fcn.004065c0
call fcn.00402864
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xd0f4]
call fcn.0040634e
mov eax, dword [0x4e6304]
mov byte [eax], 2
mov edx, 1
lea eax, [ebx + 0xd0f4]
call fcn.00406885
call fcn.00402864
mov edx, dword [ebp + 8]
lea eax, [ebx + 0xd0f4]
call fcn.004068bc
call fcn.00402864
call fcn.00402a68
mov eax, 0x152
call fcn.00402c88
add eax, 0x159
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xd0f4]
call fcn.00406454
call fcn.00402864
lea eax, [ebx + 0xd0f4]
call fcn.004065c0
call fcn.00402864
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xd0f4]
call fcn.00406454
call fcn.00402864
mov eax, 0x50
call fcn.00402c88
add eax, 0x43
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xd0f4]
call fcn.00406454
call fcn.00402864
push 0
lea edx, [ebp - 0x20]
mov ecx, 4
lea eax, [ebx + 0xd0f4]
call fcn.00406454
call fcn.00402864
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0xd0f4]
call fcn.004068bc
call fcn.00402864
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x4c37b5
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
cmp eax, 0x5000
jle 0x4c3756
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x5028]
mov ecx, 0x5000
lea eax, [ebx + 0xd38c]
call fcn.004063f0
call fcn.00402864
jmp 0x4c3772
lea edx, [ebp - 0x24]
push edx
mov ecx, eax
lea edx, [ebp - 0x5028]
lea eax, [ebx + 0xd38c]
call fcn.004063f0
call fcn.00402864
mov edx, dword [ebp - 0x24]
test edx, edx
jle 0x4c3788
lea eax, [ebp - 0x5028]
mov cl, byte [ebp - 0x14]
add byte [eax], cl
inc eax
dec edx
jne 0x4c377f
push 0
lea edx, [ebp - 0x5028]
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0xd0f4]
call fcn.00406454
call fcn.00402864
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jl 0x4c3728
cmp dword [ebp + 8], 0x3ac
jne 0x4c37f2
xor eax, eax
mov dword [ebp - 0x14], eax
mov edx, 0x364
lea eax, [ebx + 0xd0f4]
call fcn.004068bc
call fcn.00402864
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xd0f4]
call fcn.00406454
call fcn.00402864
cmp dword [ebp + 8], 0x3ca
jne 0x4c38c0
mov edx, 0x3ac
lea eax, [ebx + 0xd0f4]
call fcn.004068bc
call fcn.00402864
call fcn.00402a68
mov eax, 0x152
call fcn.00402c88
add eax, 0x159
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xd0f4]
call fcn.00406454
call fcn.00402864
lea eax, [ebx + 0xd0f4]
call fcn.004065c0
call fcn.00402864
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xd0f4]
call fcn.00406454
call fcn.00402864
mov eax, 0x50
call fcn.00402c88
add eax, 0x43
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xd0f4]
call fcn.00406454
call fcn.00402864
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x20]
mov ecx, 4
lea eax, [ebx + 0xd0f4]
call fcn.00406454
call fcn.00402864
lea eax, [ebx + 0xd38c]
call fcn.004064b8
call fcn.00402864
lea eax, [ebx + 0xd0f4]
call fcn.004064b8
call fcn.00402864
push 0x3a2
mov ecx, 0x3a2
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c3b88
push 0
mov eax, dword [ebp - 8]
call fcn.00404038
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404038
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4c395c
lea eax, [ebp - 0x28]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040407c
push 0
lea eax, [ebp - 0x508c]
mov ecx, 0x4c3b6c
mov edx, dword [ebp - 0x28]
call fcn.00403ec0
mov eax, dword [ebp - 0x508c]
call fcn.00404038
mov edx, eax
mov ecx, 0x4c3a30
mov eax, dword [0x4e6268]
mov eax, dword [eax]
call fcn.004504b4
jmp 0x4c3975
cmp dword [ebp + 8], 0x384
jle 0x4c396d
mov eax, dword [ebp - 0xc]
call fcn.00409540
mov eax, dword [ebp - 0x18]
call fcn.00409540
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3a26
lea eax, [ebp - 0x508c]
mov edx, 0xa
call fcn.00403c18
lea eax, [ebp - 0x5064]
call fcn.00403bf4
lea eax, [ebp - 0x5060]
mov edx, 3
call fcn.00403c18
lea eax, [ebp - 0x5054]
call fcn.00403bf4
lea eax, [ebp - 0x5050]
mov edx, 3
call fcn.00403c18
lea eax, [ebp - 0x5044]
call fcn.00403bf4
lea eax, [ebp - 0x5040]
mov edx, 3
call fcn.00403c18
lea eax, [ebp - 0x5034]
call fcn.00403bf4
lea eax, [ebp - 0x5030]
mov edx, 2
call fcn.00403c18
lea eax, [ebp - 0x28]
call fcn.00403bf4
lea eax, [ebp - 0x18]
call fcn.00403bf4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403c18
ret