Function at 0x49c20c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa09
push 0
push 0
dec ecx
jne 0x49c215
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.00403f24
mov eax, dword [ebp - 8]
call fcn.00403f24
xor eax, eax
push ebp
push 0x49c98e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00408f24
cmp eax, 0xffffffff
je 0x49c280
and eax, 1
dec eax
jne 0x49c280
push 0
mov ecx, 0x49c9a0
mov edx, 0x49c9a8
mov eax, dword [0x4acb28]
mov eax, dword [eax]
call fcn.0044eb9c
mov edx, esi
mov eax, ebx
call fcn.0049be2c
jmp 0x49c953
mov eax, dword [ebp - 4]
call fcn.00408f14
test al, al
jne 0x49c29b
lea edx, [ebp - 4]
mov eax, dword [0x4acb28]
mov eax, dword [eax]
call fcn.0044ef0c
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xa664]
call fcn.00405e7a
mov eax, dword [0x4acbbc]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xa664]
call fcn.00406329
call fcn.0040284c
mov edx, dword [ebp + 8]
lea eax, [ebx + 0xa664]
call fcn.00406360
call fcn.0040284c
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xa664]
call fcn.00405f1c
call fcn.0040284c
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xa664]
call fcn.00405f1c
call fcn.0040284c
lea eax, [ebx + 0xa664]
call fcn.00405fe4
call fcn.0040284c
push dword [ebx + 0x237e8]
lea edx, [ebp - 0x502c]
mov eax, dword [ebp - 4]
call fcn.0040902c
push dword [ebp - 0x502c]
push 0x49c9dc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403e30
cmp dword [ebp - 0x10], 0x100
jle 0x49c446
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xa664]
call fcn.00405e7a
mov eax, dword [0x4acbbc]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xa664]
call fcn.00406329
call fcn.0040284c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xa8fc]
call fcn.00405e7a
mov edx, 1
lea eax, [ebx + 0xa8fc]
call fcn.00406340
call fcn.0040284c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jge 0x49c424
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x1c]
cmp eax, 0x5000
jle 0x49c3df
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x5028]
mov ecx, 0x5000
lea eax, [ebx + 0xa664]
call fcn.00405f1c
call fcn.0040284c
jmp 0x49c3fb
lea edx, [ebp - 0x24]
push edx
mov ecx, eax
lea edx, [ebp - 0x5028]
lea eax, [ebx + 0xa664]
call fcn.00405f1c
call fcn.0040284c
push 0
lea edx, [ebp - 0x5028]
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0xa8fc]
call fcn.00405f80
call fcn.0040284c
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jl 0x49c3b1
lea eax, [ebx + 0xa664]
call fcn.00405fe4
call fcn.0040284c
lea eax, [ebx + 0xa8fc]
call fcn.00405fe4
call fcn.0040284c
jmp 0x49c4b1
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403f34
push eax
mov eax, dword [ebp - 4]
call fcn.00403f34
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x49c4b1
lea eax, [ebp - 0x28]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00403f78
push 0
lea eax, [ebp - 0x5030]
mov ecx, 0x49c9e8
mov edx, dword [ebp - 0x28]
call fcn.00403dbc
mov eax, dword [ebp - 0x5030]
call fcn.00403f34
mov edx, eax
mov ecx, 0x49c9a0
mov eax, dword [0x4acb28]
mov eax, dword [eax]
call fcn.0044eb9c
jmp 0x49c953
lea eax, [ebp - 0x18]
mov ecx, 0x49c9fc
mov edx, dword [ebx + 0x237e8]
call fcn.00403dbc
cmp dword [ebp + 8], 0x384
jle 0x49c548
cmp dword [ebp + 8], 0x3ca
jne 0x49c52a
push 0
mov eax, dword [ebp - 0x18]
call fcn.00403f34
push eax
lea edx, [ebp - 0x5038]
mov eax, dword [0x4acb28]
mov eax, dword [eax]
call fcn.0044ef0c
mov eax, dword [ebp - 0x5038]
lea edx, [ebp - 0x5034]
call fcn.00408ff8
lea eax, [ebp - 0x5034]
mov edx, 0x49ca14
call fcn.00403d78
mov eax, dword [ebp - 0x5034]
call fcn.00403f34
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x49c5bf
mov edx, dword [ebx + 0xab94]
mov eax, ebx
call fcn.00495fec
mov ecx, 1
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.00496f18
jmp 0x49c5bf
cmp dword [ebp + 8], 0x364
jne 0x49c589
lea edx, [ebp - 0x5040]
mov eax, dword [0x4acb28]
mov eax, dword [eax]
call fcn.0044ef0c
mov eax, dword [ebp - 0x5040]
lea edx, [ebp - 0x503c]
call fcn.00408ff8
mov edx, dword [ebp - 0x503c]
lea eax, [ebp - 0x18]
mov ecx, 0x49ca30
call fcn.00403dbc
jmp 0x49c5bf
lea edx, [ebp - 0x5048]
mov eax, dword [0x4acb28]
mov eax, dword [eax]
call fcn.0044ef0c
mov eax, dword [ebp - 0x5048]
lea edx, [ebp - 0x5044]
call fcn.00408ff8
mov edx, dword [ebp - 0x5044]
lea eax, [ebp - 0x18]
mov ecx, 0x49ca44
call fcn.00403dbc
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0xa8fc]
call fcn.00405e7a
mov eax, dword [0x4acbbc]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xa8fc]
call fcn.00406329
call fcn.0040284c
lea eax, [ebx + 0xa8fc]
call fcn.00406064
call fcn.0040284c
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xa664]
call fcn.00405e7a
mov eax, dword [0x4acbbc]
mov byte [eax], 2
mov edx, 1
lea eax, [ebx + 0xa664]
call fcn.00406329
call fcn.0040284c
mov edx, dword [ebp + 8]
lea eax, [ebx + 0xa664]
call fcn.00406360
call fcn.0040284c
call fcn.004029b0
mov eax, 0x152
call fcn.00402b84
add eax, 0x159
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xa664]
call fcn.00405f80
call fcn.0040284c
lea eax, [ebx + 0xa664]
call fcn.00406064
call fcn.0040284c
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xa664]
call fcn.00405f80
call fcn.0040284c
mov eax, 0x50
call fcn.00402b84
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 + 0xa664]
call fcn.00405f80
call fcn.0040284c
push 0
lea edx, [ebp - 0x20]
mov ecx, 4
lea eax, [ebx + 0xa664]
call fcn.00405f80
call fcn.0040284c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0xa664]
call fcn.00406360
call fcn.0040284c
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x49c793
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
cmp eax, 0x5000
jle 0x49c734
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x5028]
mov ecx, 0x5000
lea eax, [ebx + 0xa8fc]
call fcn.00405f1c
call fcn.0040284c
jmp 0x49c750
lea edx, [ebp - 0x24]
push edx
mov ecx, eax
lea edx, [ebp - 0x5028]
lea eax, [ebx + 0xa8fc]
call fcn.00405f1c
call fcn.0040284c
mov edx, dword [ebp - 0x24]
test edx, edx
jle 0x49c766
lea eax, [ebp - 0x5028]
mov cl, byte [ebp - 0x14]
add byte [eax], cl
inc eax
dec edx
jne 0x49c75d
push 0
lea edx, [ebp - 0x5028]
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0xa664]
call fcn.00405f80
call fcn.0040284c
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jl 0x49c706
cmp dword [ebp + 8], 0x3ac
jne 0x49c7d0
xor eax, eax
mov dword [ebp - 0x14], eax
mov edx, 0x364
lea eax, [ebx + 0xa664]
call fcn.00406360
call fcn.0040284c
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xa664]
call fcn.00405f80
call fcn.0040284c
cmp dword [ebp + 8], 0x3ca
jne 0x49c89e
mov edx, 0x3ac
lea eax, [ebx + 0xa664]
call fcn.00406360
call fcn.0040284c
call fcn.004029b0
mov eax, 0x152
call fcn.00402b84
add eax, 0x159
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xa664]
call fcn.00405f80
call fcn.0040284c
lea eax, [ebx + 0xa664]
call fcn.00406064
call fcn.0040284c
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xa664]
call fcn.00405f80
call fcn.0040284c
mov eax, 0x50
call fcn.00402b84
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 + 0xa664]
call fcn.00405f80
call fcn.0040284c
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x20]
mov ecx, 4
lea eax, [ebx + 0xa664]
call fcn.00405f80
call fcn.0040284c
lea eax, [ebx + 0xa8fc]
call fcn.00405fe4
call fcn.0040284c
lea eax, [ebx + 0xa664]
call fcn.00405fe4
call fcn.0040284c
push 0x3a2
mov ecx, 0x3a2
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0049ca6c
push 0
mov eax, dword [ebp - 8]
call fcn.00403f34
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403f34
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x49c93a
lea eax, [ebp - 0x28]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00403f78
push 0
lea eax, [ebp - 0x504c]
mov ecx, 0x49ca5c
mov edx, dword [ebp - 0x28]
call fcn.00403dbc
mov eax, dword [ebp - 0x504c]
call fcn.00403f34
mov edx, eax
mov ecx, 0x49c9a0
mov eax, dword [0x4acb28]
mov eax, dword [eax]
call fcn.0044eb9c
jmp 0x49c953
cmp dword [ebp + 8], 0x384
jle 0x49c94b
mov eax, dword [ebp - 0xc]
call fcn.00408f60
mov eax, dword [ebp - 0x18]
call fcn.00408f60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c995
lea eax, [ebp - 0x504c]
mov edx, 9
call fcn.00403b14
lea eax, [ebp - 0x28]
call fcn.00403af0
lea eax, [ebp - 0x18]
call fcn.00403af0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403b14
ret