Function at 0x49a348
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa09
push 0
push 0
dec ecx
jne 0x49a351
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.00403f34
mov eax, dword [ebp - 8]
call fcn.00403f34
xor eax, eax
push ebp
push 0x49aaaf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00408fcc
cmp eax, 0xffffffff
je 0x49a3bc
and eax, 1
dec eax
jne 0x49a3bc
push 0
mov ecx, 0x49aac0
mov edx, 0x49aac8
mov eax, dword [0x4a8b24]
mov eax, dword [eax]
call fcn.0044f194
mov edx, esi
mov eax, ebx
call fcn.0049a038
jmp 0x49aa74
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xa5fc]
call fcn.00405eba
mov eax, dword [0x4a8bb8]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xa5fc]
call fcn.00406369
call fcn.0040285c
mov edx, dword [ebp + 8]
lea eax, [ebx + 0xa5fc]
call fcn.004063a0
call fcn.0040285c
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xa5fc]
call fcn.00405f5c
call fcn.0040285c
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xa5fc]
call fcn.00405f5c
call fcn.0040285c
lea eax, [ebx + 0xa5fc]
call fcn.00406024
call fcn.0040285c
push dword [ebx + 0x23780]
lea edx, [ebp - 0x502c]
mov eax, dword [ebp - 4]
call fcn.004090d4
push dword [ebp - 0x502c]
push 0x49aafc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403e40
cmp dword [ebp - 0x10], 0x100
jle 0x49a567
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xa5fc]
call fcn.00405eba
mov eax, dword [0x4a8bb8]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xa5fc]
call fcn.00406369
call fcn.0040285c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xa894]
call fcn.00405eba
mov edx, 1
lea eax, [ebx + 0xa894]
call fcn.00406380
call fcn.0040285c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jge 0x49a545
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x1c]
cmp eax, 0x5000
jle 0x49a500
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x5028]
mov ecx, 0x5000
lea eax, [ebx + 0xa5fc]
call fcn.00405f5c
call fcn.0040285c
jmp 0x49a51c
lea edx, [ebp - 0x24]
push edx
mov ecx, eax
lea edx, [ebp - 0x5028]
lea eax, [ebx + 0xa5fc]
call fcn.00405f5c
call fcn.0040285c
push 0
lea edx, [ebp - 0x5028]
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0xa894]
call fcn.00405fc0
call fcn.0040285c
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jl 0x49a4d2
lea eax, [ebx + 0xa5fc]
call fcn.00406024
call fcn.0040285c
lea eax, [ebx + 0xa894]
call fcn.00406024
call fcn.0040285c
jmp 0x49a5d2
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403f44
push eax
mov eax, dword [ebp - 4]
call fcn.00403f44
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x49a5d2
lea eax, [ebp - 0x28]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00403f88
push 0
lea eax, [ebp - 0x5030]
mov ecx, 0x49ab08
mov edx, dword [ebp - 0x28]
call fcn.00403dcc
mov eax, dword [ebp - 0x5030]
call fcn.00403f44
mov edx, eax
mov ecx, 0x49aac0
mov eax, dword [0x4a8b24]
mov eax, dword [eax]
call fcn.0044f194
jmp 0x49aa74
lea eax, [ebp - 0x18]
mov ecx, 0x49ab1c
mov edx, dword [ebx + 0x23780]
call fcn.00403dcc
cmp dword [ebp + 8], 0x384
jle 0x49a669
cmp dword [ebp + 8], 0x3ca
jne 0x49a64b
push 0
mov eax, dword [ebp - 0x18]
call fcn.00403f44
push eax
lea edx, [ebp - 0x5038]
mov eax, dword [0x4a8b24]
mov eax, dword [eax]
call fcn.0044f504
mov eax, dword [ebp - 0x5038]
lea edx, [ebp - 0x5034]
call fcn.004090a0
lea eax, [ebp - 0x5034]
mov edx, 0x49ab34
call fcn.00403d88
mov eax, dword [ebp - 0x5034]
call fcn.00403f44
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x49a6e0
mov edx, dword [ebx + 0xab2c]
mov eax, ebx
call fcn.00494434
mov ecx, 1
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.0049534c
jmp 0x49a6e0
cmp dword [ebp + 8], 0x364
jne 0x49a6aa
lea edx, [ebp - 0x5040]
mov eax, dword [0x4a8b24]
mov eax, dword [eax]
call fcn.0044f504
mov eax, dword [ebp - 0x5040]
lea edx, [ebp - 0x503c]
call fcn.004090a0
mov edx, dword [ebp - 0x503c]
lea eax, [ebp - 0x18]
mov ecx, 0x49ab50
call fcn.00403dcc
jmp 0x49a6e0
lea edx, [ebp - 0x5048]
mov eax, dword [0x4a8b24]
mov eax, dword [eax]
call fcn.0044f504
mov eax, dword [ebp - 0x5048]
lea edx, [ebp - 0x5044]
call fcn.004090a0
mov edx, dword [ebp - 0x5044]
lea eax, [ebp - 0x18]
mov ecx, 0x49ab64
call fcn.00403dcc
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0xa894]
call fcn.00405eba
mov eax, dword [0x4a8bb8]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xa894]
call fcn.00406369
call fcn.0040285c
lea eax, [ebx + 0xa894]
call fcn.004060a4
call fcn.0040285c
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xa5fc]
call fcn.00405eba
mov eax, dword [0x4a8bb8]
mov byte [eax], 2
mov edx, 1
lea eax, [ebx + 0xa5fc]
call fcn.00406369
call fcn.0040285c
mov edx, dword [ebp + 8]
lea eax, [ebx + 0xa5fc]
call fcn.004063a0
call fcn.0040285c
call fcn.004029c0
mov eax, 0x152
call fcn.00402b94
add eax, 0x159
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xa5fc]
call fcn.00405fc0
call fcn.0040285c
lea eax, [ebx + 0xa5fc]
call fcn.004060a4
call fcn.0040285c
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xa5fc]
call fcn.00405fc0
call fcn.0040285c
mov eax, 0x50
call fcn.00402b94
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 + 0xa5fc]
call fcn.00405fc0
call fcn.0040285c
push 0
lea edx, [ebp - 0x20]
mov ecx, 4
lea eax, [ebx + 0xa5fc]
call fcn.00405fc0
call fcn.0040285c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0xa5fc]
call fcn.004063a0
call fcn.0040285c
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x49a8b4
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
cmp eax, 0x5000
jle 0x49a855
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x5028]
mov ecx, 0x5000
lea eax, [ebx + 0xa894]
call fcn.00405f5c
call fcn.0040285c
jmp 0x49a871
lea edx, [ebp - 0x24]
push edx
mov ecx, eax
lea edx, [ebp - 0x5028]
lea eax, [ebx + 0xa894]
call fcn.00405f5c
call fcn.0040285c
mov edx, dword [ebp - 0x24]
test edx, edx
jle 0x49a887
lea eax, [ebp - 0x5028]
mov cl, byte [ebp - 0x14]
add byte [eax], cl
inc eax
dec edx
jne 0x49a87e
push 0
lea edx, [ebp - 0x5028]
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0xa5fc]
call fcn.00405fc0
call fcn.0040285c
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jl 0x49a827
cmp dword [ebp + 8], 0x3ac
jne 0x49a8f1
xor eax, eax
mov dword [ebp - 0x14], eax
mov edx, 0x364
lea eax, [ebx + 0xa5fc]
call fcn.004063a0
call fcn.0040285c
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xa5fc]
call fcn.00405fc0
call fcn.0040285c
cmp dword [ebp + 8], 0x3ca
jne 0x49a9bf
mov edx, 0x3ac
lea eax, [ebx + 0xa5fc]
call fcn.004063a0
call fcn.0040285c
call fcn.004029c0
mov eax, 0x152
call fcn.00402b94
add eax, 0x159
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xa5fc]
call fcn.00405fc0
call fcn.0040285c
lea eax, [ebx + 0xa5fc]
call fcn.004060a4
call fcn.0040285c
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xa5fc]
call fcn.00405fc0
call fcn.0040285c
mov eax, 0x50
call fcn.00402b94
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 + 0xa5fc]
call fcn.00405fc0
call fcn.0040285c
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x20]
mov ecx, 4
lea eax, [ebx + 0xa5fc]
call fcn.00405fc0
call fcn.0040285c
lea eax, [ebx + 0xa894]
call fcn.00406024
call fcn.0040285c
lea eax, [ebx + 0xa5fc]
call fcn.00406024
call fcn.0040285c
push 0x3a2
mov ecx, 0x3a2
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0049ab8c
push 0
mov eax, dword [ebp - 8]
call fcn.00403f44
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403f44
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x49aa5b
lea eax, [ebp - 0x28]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00403f88
push 0
lea eax, [ebp - 0x504c]
mov ecx, 0x49ab7c
mov edx, dword [ebp - 0x28]
call fcn.00403dcc
mov eax, dword [ebp - 0x504c]
call fcn.00403f44
mov edx, eax
mov ecx, 0x49aac0
mov eax, dword [0x4a8b24]
mov eax, dword [eax]
call fcn.0044f194
jmp 0x49aa74
cmp dword [ebp + 8], 0x384
jle 0x49aa6c
mov eax, dword [ebp - 0xc]
call fcn.00409008
mov eax, dword [ebp - 0x18]
call fcn.00409008
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49aab6
lea eax, [ebp - 0x504c]
mov edx, 9
call fcn.00403b24
lea eax, [ebp - 0x28]
call fcn.00403b00
lea eax, [ebp - 0x18]
call fcn.00403b00
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403b24
ret