Function at 0x4b6554
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa09
push 0
push 0
dec ecx
jne 0x4b655d
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.00404018
mov eax, dword [ebp - 8]
call fcn.00404018
xor eax, eax
push ebp
push 0x4b6cfd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040948c
cmp eax, 0xffffffff
je 0x4b65c8
and eax, 1
dec eax
jne 0x4b65c8
push 0
mov ecx, 0x4b6d0c
mov edx, 0x4b6d14
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.0045043c
mov edx, esi
mov eax, ebx
call fcn.004b6178
jmp 0x4b6cc2
mov eax, dword [ebp - 4]
call fcn.0040947c
test al, al
jne 0x4b65e3
lea edx, [ebp - 4]
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.004507ac
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xae6c]
call fcn.0040633e
mov eax, dword [0x4cf300]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xae6c]
call fcn.00406841
call fcn.00402854
mov edx, dword [ebp + 8]
lea eax, [ebx + 0xae6c]
call fcn.00406878
call fcn.00402854
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xae6c]
call fcn.004063e0
call fcn.00402854
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xae6c]
call fcn.004063e0
call fcn.00402854
lea eax, [ebx + 0xae6c]
call fcn.004064a8
call fcn.00402854
push dword [ebx + 0x4ff90]
lea edx, [ebp - 0x502c]
mov eax, dword [ebp - 4]
call fcn.00409594
push dword [ebp - 0x502c]
push 0x4b6d48
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403f24
cmp dword [ebp - 0x10], 0x100
jle 0x4b678e
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xae6c]
call fcn.0040633e
mov eax, dword [0x4cf300]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xae6c]
call fcn.00406841
call fcn.00402854
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xb104]
call fcn.0040633e
mov edx, 1
lea eax, [ebx + 0xb104]
call fcn.00406858
call fcn.00402854
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jge 0x4b676c
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x1c]
cmp eax, 0x5000
jle 0x4b6727
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x5028]
mov ecx, 0x5000
lea eax, [ebx + 0xae6c]
call fcn.004063e0
call fcn.00402854
jmp 0x4b6743
lea edx, [ebp - 0x24]
push edx
mov ecx, eax
lea edx, [ebp - 0x5028]
lea eax, [ebx + 0xae6c]
call fcn.004063e0
call fcn.00402854
push 0
lea edx, [ebp - 0x5028]
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0xb104]
call fcn.00406444
call fcn.00402854
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jl 0x4b66f9
lea eax, [ebx + 0xae6c]
call fcn.004064a8
call fcn.00402854
lea eax, [ebx + 0xb104]
call fcn.004064a8
call fcn.00402854
jmp 0x4b67f9
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404028
push eax
mov eax, dword [ebp - 4]
call fcn.00404028
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4b67f9
lea eax, [ebp - 0x28]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0040406c
push 0
lea eax, [ebp - 0x5030]
mov ecx, 0x4b6d54
mov edx, dword [ebp - 0x28]
call fcn.00403eb0
mov eax, dword [ebp - 0x5030]
call fcn.00404028
mov edx, eax
mov ecx, 0x4b6d0c
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.0045043c
jmp 0x4b6cc2
lea eax, [ebp - 0x18]
mov ecx, 0x4b6d68
mov edx, dword [ebx + 0x4ff90]
call fcn.00403eb0
cmp dword [ebp + 8], 0x384
jle 0x4b68b7
cmp dword [ebp + 8], 0x3ca
jne 0x4b6876
push 0
mov eax, dword [ebp - 0x18]
call fcn.00404028
push eax
lea edx, [ebp - 0x5038]
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.004507ac
mov eax, dword [ebp - 0x5038]
lea edx, [ebp - 0x5034]
call fcn.00409560
lea eax, [ebp - 0x5034]
mov edx, 0x4b6d80
call fcn.00403e6c
mov eax, dword [ebp - 0x5034]
call fcn.00404028
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x4b692e
mov eax, dword [ebx + 0x6e4]
cmp byte [eax + 0x47], 1
jne 0x4b68a6
mov eax, dword [ebx + 0xb39c]
mov edx, eax
shl eax, 3
sub eax, edx
cmp byte [ebx + eax*8 + 0xb55e], 0
jne 0x4b68a6
mov edx, dword [ebx + 0xb39c]
mov eax, ebx
call fcn.004af720
mov ecx, 2
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.004b0520
jmp 0x4b692e
cmp dword [ebp + 8], 0x364
jne 0x4b68f8
lea edx, [ebp - 0x5040]
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.004507ac
mov eax, dword [ebp - 0x5040]
lea edx, [ebp - 0x503c]
call fcn.00409560
mov edx, dword [ebp - 0x503c]
lea eax, [ebp - 0x18]
mov ecx, 0x4b6d9c
call fcn.00403eb0
jmp 0x4b692e
lea edx, [ebp - 0x5048]
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.004507ac
mov eax, dword [ebp - 0x5048]
lea edx, [ebp - 0x5044]
call fcn.00409560
mov edx, dword [ebp - 0x5044]
lea eax, [ebp - 0x18]
mov ecx, 0x4b6db0
call fcn.00403eb0
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0xb104]
call fcn.0040633e
mov eax, dword [0x4cf300]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xb104]
call fcn.00406841
call fcn.00402854
lea eax, [ebx + 0xb104]
call fcn.0040657c
call fcn.00402854
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xae6c]
call fcn.0040633e
mov eax, dword [0x4cf300]
mov byte [eax], 2
mov edx, 1
lea eax, [ebx + 0xae6c]
call fcn.00406841
call fcn.00402854
mov edx, dword [ebp + 8]
lea eax, [ebx + 0xae6c]
call fcn.00406878
call fcn.00402854
call fcn.00402a58
mov eax, 0x152
call fcn.00402c78
add eax, 0x159
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xae6c]
call fcn.00406444
call fcn.00402854
lea eax, [ebx + 0xae6c]
call fcn.0040657c
call fcn.00402854
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xae6c]
call fcn.00406444
call fcn.00402854
mov eax, 0x50
call fcn.00402c78
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 + 0xae6c]
call fcn.00406444
call fcn.00402854
push 0
lea edx, [ebp - 0x20]
mov ecx, 4
lea eax, [ebx + 0xae6c]
call fcn.00406444
call fcn.00402854
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0xae6c]
call fcn.00406878
call fcn.00402854
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x4b6b02
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
cmp eax, 0x5000
jle 0x4b6aa3
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x5028]
mov ecx, 0x5000
lea eax, [ebx + 0xb104]
call fcn.004063e0
call fcn.00402854
jmp 0x4b6abf
lea edx, [ebp - 0x24]
push edx
mov ecx, eax
lea edx, [ebp - 0x5028]
lea eax, [ebx + 0xb104]
call fcn.004063e0
call fcn.00402854
mov edx, dword [ebp - 0x24]
test edx, edx
jle 0x4b6ad5
lea eax, [ebp - 0x5028]
mov cl, byte [ebp - 0x14]
add byte [eax], cl
inc eax
dec edx
jne 0x4b6acc
push 0
lea edx, [ebp - 0x5028]
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0xae6c]
call fcn.00406444
call fcn.00402854
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jl 0x4b6a75
cmp dword [ebp + 8], 0x3ac
jne 0x4b6b3f
xor eax, eax
mov dword [ebp - 0x14], eax
mov edx, 0x364
lea eax, [ebx + 0xae6c]
call fcn.00406878
call fcn.00402854
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xae6c]
call fcn.00406444
call fcn.00402854
cmp dword [ebp + 8], 0x3ca
jne 0x4b6c0d
mov edx, 0x3ac
lea eax, [ebx + 0xae6c]
call fcn.00406878
call fcn.00402854
call fcn.00402a58
mov eax, 0x152
call fcn.00402c78
add eax, 0x159
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xae6c]
call fcn.00406444
call fcn.00402854
lea eax, [ebx + 0xae6c]
call fcn.0040657c
call fcn.00402854
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xae6c]
call fcn.00406444
call fcn.00402854
mov eax, 0x50
call fcn.00402c78
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 + 0xae6c]
call fcn.00406444
call fcn.00402854
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x20]
mov ecx, 4
lea eax, [ebx + 0xae6c]
call fcn.00406444
call fcn.00402854
lea eax, [ebx + 0xb104]
call fcn.004064a8
call fcn.00402854
lea eax, [ebx + 0xae6c]
call fcn.004064a8
call fcn.00402854
push 0x3a2
mov ecx, 0x3a2
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004b6dd8
push 0
mov eax, dword [ebp - 8]
call fcn.00404028
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404028
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4b6ca9
lea eax, [ebp - 0x28]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040406c
push 0
lea eax, [ebp - 0x504c]
mov ecx, 0x4b6dc8
mov edx, dword [ebp - 0x28]
call fcn.00403eb0
mov eax, dword [ebp - 0x504c]
call fcn.00404028
mov edx, eax
mov ecx, 0x4b6d0c
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.0045043c
jmp 0x4b6cc2
cmp dword [ebp + 8], 0x384
jle 0x4b6cba
mov eax, dword [ebp - 0xc]
call fcn.004094c8
mov eax, dword [ebp - 0x18]
call fcn.004094c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6d04
lea eax, [ebp - 0x504c]
mov edx, 9
call fcn.00403c08
lea eax, [ebp - 0x28]
call fcn.00403be4
lea eax, [ebp - 0x18]
call fcn.00403be4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403c08
ret