Function at 0x4b682c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa09
push 0
push 0
dec ecx
jne 0x4b6835
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 0x4b6fd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004094b8
cmp eax, 0xffffffff
je 0x4b68a0
and eax, 1
dec eax
jne 0x4b68a0
push 0
mov ecx, 0x4b6fe4
mov edx, 0x4b6fec
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.00450468
mov edx, esi
mov eax, ebx
call fcn.004b6450
jmp 0x4b6f9a
mov eax, dword [ebp - 4]
call fcn.004094a8
test al, al
jne 0x4b68bb
lea edx, [ebp - 4]
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.004507d8
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xae84]
call fcn.0040633e
mov eax, dword [0x4cf300]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xae84]
call fcn.00406875
call fcn.00402854
mov edx, dword [ebp + 8]
lea eax, [ebx + 0xae84]
call fcn.004068ac
call fcn.00402854
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xae84]
call fcn.004063e0
call fcn.00402854
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xae84]
call fcn.004063e0
call fcn.00402854
lea eax, [ebx + 0xae84]
call fcn.004064a8
call fcn.00402854
push dword [ebx + 0x4ffa8]
lea edx, [ebp - 0x502c]
mov eax, dword [ebp - 4]
call fcn.004095c0
push dword [ebp - 0x502c]
push 0x4b7020
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403f24
cmp dword [ebp - 0x10], 0x100
jle 0x4b6a66
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xae84]
call fcn.0040633e
mov eax, dword [0x4cf300]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xae84]
call fcn.00406875
call fcn.00402854
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xb11c]
call fcn.0040633e
mov edx, 1
lea eax, [ebx + 0xb11c]
call fcn.0040688c
call fcn.00402854
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jge 0x4b6a44
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x1c]
cmp eax, 0x5000
jle 0x4b69ff
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x5028]
mov ecx, 0x5000
lea eax, [ebx + 0xae84]
call fcn.004063e0
call fcn.00402854
jmp 0x4b6a1b
lea edx, [ebp - 0x24]
push edx
mov ecx, eax
lea edx, [ebp - 0x5028]
lea eax, [ebx + 0xae84]
call fcn.004063e0
call fcn.00402854
push 0
lea edx, [ebp - 0x5028]
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0xb11c]
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 0x4b69d1
lea eax, [ebx + 0xae84]
call fcn.004064a8
call fcn.00402854
lea eax, [ebx + 0xb11c]
call fcn.004064a8
call fcn.00402854
jmp 0x4b6ad1
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 0x4b6ad1
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, 0x4b702c
mov edx, dword [ebp - 0x28]
call fcn.00403eb0
mov eax, dword [ebp - 0x5030]
call fcn.00404028
mov edx, eax
mov ecx, 0x4b6fe4
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.00450468
jmp 0x4b6f9a
lea eax, [ebp - 0x18]
mov ecx, 0x4b7040
mov edx, dword [ebx + 0x4ffa8]
call fcn.00403eb0
cmp dword [ebp + 8], 0x384
jle 0x4b6b8f
cmp dword [ebp + 8], 0x3ca
jne 0x4b6b4e
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.004507d8
mov eax, dword [ebp - 0x5038]
lea edx, [ebp - 0x5034]
call fcn.0040958c
lea eax, [ebp - 0x5034]
mov edx, 0x4b7058
call fcn.00403e6c
mov eax, dword [ebp - 0x5034]
call fcn.00404028
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x4b6c06
mov eax, dword [ebx + 0x6e4]
cmp byte [eax + 0x47], 1
jne 0x4b6b7e
mov eax, dword [ebx + 0xb3b4]
mov edx, eax
shl eax, 3
sub eax, edx
cmp byte [ebx + eax*8 + 0xb576], 0
jne 0x4b6b7e
mov edx, dword [ebx + 0xb3b4]
mov eax, ebx
call fcn.004af9e0
mov ecx, 2
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.004b07f0
jmp 0x4b6c06
cmp dword [ebp + 8], 0x364
jne 0x4b6bd0
lea edx, [ebp - 0x5040]
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.004507d8
mov eax, dword [ebp - 0x5040]
lea edx, [ebp - 0x503c]
call fcn.0040958c
mov edx, dword [ebp - 0x503c]
lea eax, [ebp - 0x18]
mov ecx, 0x4b7074
call fcn.00403eb0
jmp 0x4b6c06
lea edx, [ebp - 0x5048]
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.004507d8
mov eax, dword [ebp - 0x5048]
lea edx, [ebp - 0x5044]
call fcn.0040958c
mov edx, dword [ebp - 0x5044]
lea eax, [ebp - 0x18]
mov ecx, 0x4b7088
call fcn.00403eb0
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0xb11c]
call fcn.0040633e
mov eax, dword [0x4cf300]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xb11c]
call fcn.00406875
call fcn.00402854
lea eax, [ebx + 0xb11c]
call fcn.004065b0
call fcn.00402854
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xae84]
call fcn.0040633e
mov eax, dword [0x4cf300]
mov byte [eax], 2
mov edx, 1
lea eax, [ebx + 0xae84]
call fcn.00406875
call fcn.00402854
mov edx, dword [ebp + 8]
lea eax, [ebx + 0xae84]
call fcn.004068ac
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 + 0xae84]
call fcn.00406444
call fcn.00402854
lea eax, [ebx + 0xae84]
call fcn.004065b0
call fcn.00402854
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xae84]
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 + 0xae84]
call fcn.00406444
call fcn.00402854
push 0
lea edx, [ebp - 0x20]
mov ecx, 4
lea eax, [ebx + 0xae84]
call fcn.00406444
call fcn.00402854
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0xae84]
call fcn.004068ac
call fcn.00402854
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x4b6dda
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
cmp eax, 0x5000
jle 0x4b6d7b
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x5028]
mov ecx, 0x5000
lea eax, [ebx + 0xb11c]
call fcn.004063e0
call fcn.00402854
jmp 0x4b6d97
lea edx, [ebp - 0x24]
push edx
mov ecx, eax
lea edx, [ebp - 0x5028]
lea eax, [ebx + 0xb11c]
call fcn.004063e0
call fcn.00402854
mov edx, dword [ebp - 0x24]
test edx, edx
jle 0x4b6dad
lea eax, [ebp - 0x5028]
mov cl, byte [ebp - 0x14]
add byte [eax], cl
inc eax
dec edx
jne 0x4b6da4
push 0
lea edx, [ebp - 0x5028]
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0xae84]
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 0x4b6d4d
cmp dword [ebp + 8], 0x3ac
jne 0x4b6e17
xor eax, eax
mov dword [ebp - 0x14], eax
mov edx, 0x364
lea eax, [ebx + 0xae84]
call fcn.004068ac
call fcn.00402854
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xae84]
call fcn.00406444
call fcn.00402854
cmp dword [ebp + 8], 0x3ca
jne 0x4b6ee5
mov edx, 0x3ac
lea eax, [ebx + 0xae84]
call fcn.004068ac
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 + 0xae84]
call fcn.00406444
call fcn.00402854
lea eax, [ebx + 0xae84]
call fcn.004065b0
call fcn.00402854
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xae84]
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 + 0xae84]
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 + 0xae84]
call fcn.00406444
call fcn.00402854
lea eax, [ebx + 0xb11c]
call fcn.004064a8
call fcn.00402854
lea eax, [ebx + 0xae84]
call fcn.004064a8
call fcn.00402854
push 0x3a2
mov ecx, 0x3a2
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004b70b0
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 0x4b6f81
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, 0x4b70a0
mov edx, dword [ebp - 0x28]
call fcn.00403eb0
mov eax, dword [ebp - 0x504c]
call fcn.00404028
mov edx, eax
mov ecx, 0x4b6fe4
mov eax, dword [0x4cf264]
mov eax, dword [eax]
call fcn.00450468
jmp 0x4b6f9a
cmp dword [ebp + 8], 0x384
jle 0x4b6f92
mov eax, dword [ebp - 0xc]
call fcn.004094f4
mov eax, dword [ebp - 0x18]
call fcn.004094f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6fdc
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