Function at 0x410df0
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x45f8b6
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
xor esi, esi
push esi
lea edx, [esp + 0x278]
mov ebp, 7
xor eax, eax
mov ebx, 1
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], esi
push edx
mov dword [esp + 0x274], ebx
mov word [ecx + 4], ax
call fcn.00408e40
lea eax, [esp + 0x34]
push eax
call fcn.0040eb40
add esp, 0x20
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x260]
mov byte [esp + 0x258], 2
call fcn.00408e40
mov edi, 8
mov byte [esp + 0x24c], bl
cmp dword [esp + 0x30], edi
jb 0x410ea7
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043e711
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x294]
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], esi
push eax
mov word [ecx + 4], dx
call fcn.00408e40
lea ecx, [esp + 0x34]
push ecx
call fcn.0040eb40
add esp, 0x20
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x27c]
mov byte [esp + 0x258], 3
call fcn.00408e40
cmp dword [esp + 0x30], edi
jb 0x410f04
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043e711
add esp, 4
mov eax, dword [esp + 0x258]
cmp dword [esp + 0x26c], edi
jae 0x410f1b
lea eax, [esp + 0x258]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x410f7d
cmp dword [esp + 0x26c], edi
jb 0x410f41
mov eax, dword [esp + 0x258]
push eax
call fcn.0043e711
add esp, 4
xor ecx, ecx
mov dword [esp + 0x26c], ebp
mov dword [esp + 0x268], 0
mov word [esp + 0x258], cx
cmp dword [esp + 0x288], edi
jb 0x410f76
mov edx, dword [esp + 0x274]
push edx
call fcn.0043e711
add esp, 4
xor al, al
jmp 0x4110a9
mov eax, dword [esp + 0x274]
cmp dword [esp + 0x288], edi
jae 0x410f94
lea eax, [esp + 0x274]
push eax
call esi
test eax, eax
jne 0x410fbb
mov eax, dword [esp + 0x274]
cmp dword [esp + 0x288], edi
jae 0x410fb2
lea eax, [esp + 0x274]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [esp + 0x274]
cmp dword [esp + 0x288], edi
jae 0x410fd2
lea eax, [esp + 0x274]
push eax
call esi
test eax, eax
je 0x410f28
mov eax, dword [esp + 0x258]
cmp dword [esp + 0x26c], edi
jae 0x410ff4
lea eax, [esp + 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
jne 0x411020
lea ecx, [esp + 0x254]
call fcn.004084b0
lea ecx, [esp + 0x270]
call fcn.004084b0
xor al, al
jmp 0x4110a9
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x3e]
push ecx
mov word [esp + 0x40], ax
call fcn.0043f440
mov eax, dword [esp + 0x280]
add esp, 0xc
cmp dword [esp + 0x288], edi
jae 0x411051
lea eax, [esp + 0x274]
push esi
push eax
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [esp + 0x258]
cmp dword [esp + 0x26c], edi
jae 0x411075
lea eax, [esp + 0x258]
movzx ecx, byte [esp + 0x28c]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea ecx, [esp + 0x254]
setne bl
call fcn.004084b0
lea ecx, [esp + 0x270]
call fcn.004084b0
mov al, bl
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0043f03d
add esp, 0x23c
ret