Function at 0x401090
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x409916
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push ebx
push ebp
mov ebp, dword [esp + 0x274]
xor ebx, ebx
cmp ebp, ebx
push esi
je 0x40135c
mov esi, dword [esp + 0x27c]
cmp esi, ebx
je 0x40135c
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x65]
mov byte [esp + 0x64], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [esp + 0x17]
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00402080
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x2c]
call fcn.00402190
mov eax, dword [0x40a120]
mov edi, dword [esp + 0x2c]
push 1
lea ecx, [esp + 0x17]
push eax
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x280], ebx
mov byte [esp + 0x1f], 0x5c
call fcn.00401f90
dec edi
cmp edi, eax
je 0x401159
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x401144
mov eax, 0x40a11c
push eax
lea edx, [esp + 0x68]
push 0x40b040
push edx
call fcn.00402a88
add esp, 0xc
jmp 0x401199
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
dec eax
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00401c00
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x40117b
mov eax, 0x40a11c
push eax
lea edx, [esp + 0x68]
push 0x40b040
push edx
call fcn.00402a88
add esp, 0xc
lea ecx, [esp + 0x34]
push 1
call fcn.00402080
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x169]
mov byte [esp + 0x168], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00402080
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00402250
test al, al
je 0x401201
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00402230
mov eax, dword [0x40a120]
mov esi, dword [esp + 0x1c]
push 1
push eax
lea eax, [esp + 0x1b]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x280], 1
mov byte [esp + 0x1f], 0x5c
call fcn.00401f90
dec esi
cmp esi, eax
je 0x401252
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x40123a
mov eax, 0x40a11c
push eax
lea ecx, [esp + 0x16c]
push 0x40b040
push ecx
call fcn.00402a88
add esp, 0xc
jmp 0x4012ae
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
dec edx
lea ecx, [esp + 0x14]
push edx
push ebx
push eax
call fcn.00401c00
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x401274
mov eax, 0x40a11c
push eax
lea ecx, [esp + 0x16c]
push 0x40b040
push ecx
call fcn.00402a88
mov ecx, dword [esp + 0x44]
add esp, 0xc
cmp ecx, ebx
je 0x4012ae
mov al, byte [ecx - 1]
cmp al, bl
je 0x4012a4
cmp al, 0xff
je 0x4012a4
dec al
mov byte [ecx - 1], al
jmp 0x4012ae
dec ecx
push ecx
call fcn.00402600
add esp, 4
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x44]
lea edx, [esp + 0x64]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x44]
lea eax, [esp + 0x168]
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov word [esp + 0x58], 0x214
mov dword [esp + 0x5a], ebx
mov dword [esp + 0x5e], ebx
mov dword [esp + 0x62], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [esp + 0x18]
mov esi, eax
neg esi
sbb esi, esi
pop edi
inc esi
cmp ecx, ebx
je 0x401326
mov al, byte [ecx - 1]
cmp al, bl
je 0x40131c
cmp al, 0xff
je 0x40131c
dec al
mov byte [ecx - 1], al
jmp 0x401326
dec ecx
push ecx
call fcn.00402600
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ebx
cmp ecx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
je 0x401358
mov al, byte [ecx - 1]
cmp al, bl
je 0x40134e
cmp al, 0xff
je 0x40134e
dec al
mov byte [ecx - 1], al
mov eax, esi
jmp 0x40135f
dec ecx
push ecx
call fcn.00402600
add esp, 4
mov eax, esi
jmp 0x40135f
or eax, 0xffffffff
mov ecx, dword [esp + 0x268]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x268
ret