Function at 0x4ad978
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa09
push 0
push 0
dec ecx
jne 0x4ad981
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.00403ff4
mov eax, dword [ebp - 8]
call fcn.00403ff4
xor eax, eax
push ebp
push 0x4ae0fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040932c
cmp eax, 0xffffffff
je 0x4ad9ec
and eax, 1
dec eax
jne 0x4ad9ec
push 0
mov ecx, 0x4ae10c
mov edx, 0x4ae114
mov eax, dword [0x4c3254]
mov eax, dword [eax]
call fcn.0044f9f8
mov edx, esi
mov eax, ebx
call fcn.004ad594
jmp 0x4ae0bf
mov eax, dword [ebp - 4]
call fcn.0040931c
test al, al
jne 0x4ada07
lea edx, [ebp - 4]
mov eax, dword [0x4c3254]
mov eax, dword [eax]
call fcn.0044fd68
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xa970]
call fcn.0040629e
mov eax, dword [0x4c32ec]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xa970]
call fcn.0040674d
call fcn.0040284c
mov edx, dword [ebp + 8]
lea eax, [ebx + 0xa970]
call fcn.00406784
call fcn.0040284c
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xa970]
call fcn.00406340
call fcn.0040284c
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xa970]
call fcn.00406340
call fcn.0040284c
lea eax, [ebx + 0xa970]
call fcn.00406408
call fcn.0040284c
push dword [ebx + 0x4fa8c]
lea edx, [ebp - 0x502c]
mov eax, dword [ebp - 4]
call fcn.00409434
push dword [ebp - 0x502c]
push 0x4ae148
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403f00
cmp dword [ebp - 0x10], 0x100
jle 0x4adbb2
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xa970]
call fcn.0040629e
mov eax, dword [0x4c32ec]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xa970]
call fcn.0040674d
call fcn.0040284c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xac08]
call fcn.0040629e
mov edx, 1
lea eax, [ebx + 0xac08]
call fcn.00406764
call fcn.0040284c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jge 0x4adb90
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x1c]
cmp eax, 0x5000
jle 0x4adb4b
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x5028]
mov ecx, 0x5000
lea eax, [ebx + 0xa970]
call fcn.00406340
call fcn.0040284c
jmp 0x4adb67
lea edx, [ebp - 0x24]
push edx
mov ecx, eax
lea edx, [ebp - 0x5028]
lea eax, [ebx + 0xa970]
call fcn.00406340
call fcn.0040284c
push 0
lea edx, [ebp - 0x5028]
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0xac08]
call fcn.004063a4
call fcn.0040284c
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jl 0x4adb1d
lea eax, [ebx + 0xa970]
call fcn.00406408
call fcn.0040284c
lea eax, [ebx + 0xac08]
call fcn.00406408
call fcn.0040284c
jmp 0x4adc1d
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404004
push eax
mov eax, dword [ebp - 4]
call fcn.00404004
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4adc1d
lea eax, [ebp - 0x28]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404048
push 0
lea eax, [ebp - 0x5030]
mov ecx, 0x4ae154
mov edx, dword [ebp - 0x28]
call fcn.00403e8c
mov eax, dword [ebp - 0x5030]
call fcn.00404004
mov edx, eax
mov ecx, 0x4ae10c
mov eax, dword [0x4c3254]
mov eax, dword [eax]
call fcn.0044f9f8
jmp 0x4ae0bf
lea eax, [ebp - 0x18]
mov ecx, 0x4ae168
mov edx, dword [ebx + 0x4fa8c]
call fcn.00403e8c
cmp dword [ebp + 8], 0x384
jle 0x4adcb4
cmp dword [ebp + 8], 0x3ca
jne 0x4adc96
push 0
mov eax, dword [ebp - 0x18]
call fcn.00404004
push eax
lea edx, [ebp - 0x5038]
mov eax, dword [0x4c3254]
mov eax, dword [eax]
call fcn.0044fd68
mov eax, dword [ebp - 0x5038]
lea edx, [ebp - 0x5034]
call fcn.00409400
lea eax, [ebp - 0x5034]
mov edx, 0x4ae180
call fcn.00403e48
mov eax, dword [ebp - 0x5034]
call fcn.00404004
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x4add2b
mov edx, dword [ebx + 0xaea0]
mov eax, ebx
call fcn.004a73a0
mov ecx, 1
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.004a8058
jmp 0x4add2b
cmp dword [ebp + 8], 0x364
jne 0x4adcf5
lea edx, [ebp - 0x5040]
mov eax, dword [0x4c3254]
mov eax, dword [eax]
call fcn.0044fd68
mov eax, dword [ebp - 0x5040]
lea edx, [ebp - 0x503c]
call fcn.00409400
mov edx, dword [ebp - 0x503c]
lea eax, [ebp - 0x18]
mov ecx, 0x4ae19c
call fcn.00403e8c
jmp 0x4add2b
lea edx, [ebp - 0x5048]
mov eax, dword [0x4c3254]
mov eax, dword [eax]
call fcn.0044fd68
mov eax, dword [ebp - 0x5048]
lea edx, [ebp - 0x5044]
call fcn.00409400
mov edx, dword [ebp - 0x5044]
lea eax, [ebp - 0x18]
mov ecx, 0x4ae1b0
call fcn.00403e8c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0xac08]
call fcn.0040629e
mov eax, dword [0x4c32ec]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xac08]
call fcn.0040674d
call fcn.0040284c
lea eax, [ebx + 0xac08]
call fcn.00406488
call fcn.0040284c
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xa970]
call fcn.0040629e
mov eax, dword [0x4c32ec]
mov byte [eax], 2
mov edx, 1
lea eax, [ebx + 0xa970]
call fcn.0040674d
call fcn.0040284c
mov edx, dword [ebp + 8]
lea eax, [ebx + 0xa970]
call fcn.00406784
call fcn.0040284c
call fcn.00402a34
mov eax, 0x152
call fcn.00402c54
add eax, 0x159
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xa970]
call fcn.004063a4
call fcn.0040284c
lea eax, [ebx + 0xa970]
call fcn.00406488
call fcn.0040284c
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xa970]
call fcn.004063a4
call fcn.0040284c
mov eax, 0x50
call fcn.00402c54
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 + 0xa970]
call fcn.004063a4
call fcn.0040284c
push 0
lea edx, [ebp - 0x20]
mov ecx, 4
lea eax, [ebx + 0xa970]
call fcn.004063a4
call fcn.0040284c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0xa970]
call fcn.00406784
call fcn.0040284c
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x4adeff
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
cmp eax, 0x5000
jle 0x4adea0
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x5028]
mov ecx, 0x5000
lea eax, [ebx + 0xac08]
call fcn.00406340
call fcn.0040284c
jmp 0x4adebc
lea edx, [ebp - 0x24]
push edx
mov ecx, eax
lea edx, [ebp - 0x5028]
lea eax, [ebx + 0xac08]
call fcn.00406340
call fcn.0040284c
mov edx, dword [ebp - 0x24]
test edx, edx
jle 0x4aded2
lea eax, [ebp - 0x5028]
mov cl, byte [ebp - 0x14]
add byte [eax], cl
inc eax
dec edx
jne 0x4adec9
push 0
lea edx, [ebp - 0x5028]
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0xa970]
call fcn.004063a4
call fcn.0040284c
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jl 0x4ade72
cmp dword [ebp + 8], 0x3ac
jne 0x4adf3c
xor eax, eax
mov dword [ebp - 0x14], eax
mov edx, 0x364
lea eax, [ebx + 0xa970]
call fcn.00406784
call fcn.0040284c
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xa970]
call fcn.004063a4
call fcn.0040284c
cmp dword [ebp + 8], 0x3ca
jne 0x4ae00a
mov edx, 0x3ac
lea eax, [ebx + 0xa970]
call fcn.00406784
call fcn.0040284c
call fcn.00402a34
mov eax, 0x152
call fcn.00402c54
add eax, 0x159
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xa970]
call fcn.004063a4
call fcn.0040284c
lea eax, [ebx + 0xa970]
call fcn.00406488
call fcn.0040284c
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xa970]
call fcn.004063a4
call fcn.0040284c
mov eax, 0x50
call fcn.00402c54
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 + 0xa970]
call fcn.004063a4
call fcn.0040284c
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x20]
mov ecx, 4
lea eax, [ebx + 0xa970]
call fcn.004063a4
call fcn.0040284c
lea eax, [ebx + 0xac08]
call fcn.00406408
call fcn.0040284c
lea eax, [ebx + 0xa970]
call fcn.00406408
call fcn.0040284c
push 0x3a2
mov ecx, 0x3a2
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004ae1d8
push 0
mov eax, dword [ebp - 8]
call fcn.00404004
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404004
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4ae0a6
lea eax, [ebp - 0x28]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404048
push 0
lea eax, [ebp - 0x504c]
mov ecx, 0x4ae1c8
mov edx, dword [ebp - 0x28]
call fcn.00403e8c
mov eax, dword [ebp - 0x504c]
call fcn.00404004
mov edx, eax
mov ecx, 0x4ae10c
mov eax, dword [0x4c3254]
mov eax, dword [eax]
call fcn.0044f9f8
jmp 0x4ae0bf
cmp dword [ebp + 8], 0x384
jle 0x4ae0b7
mov eax, dword [ebp - 0xc]
call fcn.00409368
mov eax, dword [ebp - 0x18]
call fcn.00409368
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae101
lea eax, [ebp - 0x504c]
mov edx, 9
call fcn.00403be4
lea eax, [ebp - 0x28]
call fcn.00403bc0
lea eax, [ebp - 0x18]
call fcn.00403bc0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403be4
ret