Function at 0x409d80
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x48a961
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x2c]
call fcn.00450cc7
mov edi, dword [esp + 0x260]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0x264]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4b0ff4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x25c], 0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x150]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x26c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046b466
add esp, 4
lea eax, [esp + 0x14c]
lea ecx, [esp + 0x2c]
push 0
push eax
call fcn.00450d8a
test eax, eax
je 0x40a0ad
lea ecx, [esp + 0x2c]
call fcn.00450faa
mov edx, dword [esp + 0x2c]
push 0x10
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], eax
call dword [edx + 0x38]
test eax, eax
jne 0x409f47
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x48]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4b0ff4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
call fcn.004511a2
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x48]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.0046e753
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push eax
call fcn.00451079
mov eax, dword [eax]
lea ecx, [esp + 0x48]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x18]
jmp 0x40a09c
lea edx, [esp + 0x20]
lea ecx, [esp + 0x2c]
push edx
call fcn.004511a2
mov eax, dword [eax]
push 0x4b0e38
push eax
mov byte [esp + 0x260], 1
call fcn.00458301
add esp, 8
test eax, eax
je 0x409fa5
lea eax, [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
call fcn.004511a2
mov eax, dword [eax]
push 0x4b0f94
push eax
call fcn.00458301
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
setne bl
call fcn.0046e753
test bl, bl
je 0x409fa5
mov bl, 1
jmp 0x409fa7
xor bl, bl
lea ecx, [esp + 0x20]
mov byte [esp + 0x258], 0
call fcn.0046e753
test bl, bl
je 0x40a0a1
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4b0ff4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
call fcn.004511a2
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x48]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0046e753
lea eax, [esp + 0x48]
push eax
call fcn.0046b466
add esp, 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x30]
call fcn.00451079
mov edx, dword [esp + 0x268]
mov eax, dword [eax]
lea ecx, [esp + 0x48]
push edx
push ecx
push eax
mov byte [esp + 0x264], 2
call fcn.00409d80
add esp, 0xc
mov byte [esp + 0x258], 0
lea ecx, [esp + 0x14]
call fcn.0046e753
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x409e6b
lea ecx, [esp + 0x2c]
call fcn.00450d40
lea ecx, [esp + 0x2c]
mov dword [esp + 0x258], 0xffffffff
call fcn.00450d04
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24c
ret