Function at 0x405df0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3aa5
mov eax, dword fs:[0]
push eax
sub esp, 0x4d8
mov eax, dword [0x4cc00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004043b0
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x405e75
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x405e69
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00407400
lea ecx, [ebp - 0x28]
call fcn.004041e0
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x405e9a
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x405e8e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407400
cmp dword [ebp - 0x30], 0
je 0x405fa1
cmp dword [ebp - 0x18], 0
je 0x405fa1
push 0x250
lea eax, [ebp - 0x4e0]
push 0
push eax
call fcn.00443950
add esp, 0xc
lea eax, [ebp - 0x290]
push 0x250
push 0
push eax
call fcn.00443950
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x4e0]
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call esi
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov ebx, eax
lea eax, [ebp - 0x290]
cmovae ecx, dword [ebp - 0x40]
push eax
push ecx
call esi
mov esi, eax
cmp ebx, 0xffffffff
je 0x405f6e
cmp esi, 0xffffffff
je 0x405f34
mov ecx, dword [ebp - 0x278]
cmp ecx, dword [ebp - 0x4c8]
jne 0x405f34
mov eax, dword [ebp - 0x27c]
cmp eax, dword [ebp - 0x4cc]
je 0x405f54
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push 0
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x405f9a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
jmp 0x405fa3
cmp esi, 0xffffffff
je 0x405f9a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
jmp 0x405fa3
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x405fd9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405fcf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406040
push edx
push ecx
call fcn.0044235d
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x406023
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406019
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406040
push edx
push ecx
call fcn.0044235d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00441dc6
mov esp, ebp
pop ebp
ret
call fcn.004452a7
int3