Function at 0x40bcb0
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419974
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x424320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x74], edi
push 0x14
xor eax, eax
mov dword [ebp - 0x44], 7
push str.START_CopySourceFile
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00404f00
xor dl, dl
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.004030c0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x44], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40bd34
push dword [ebp - 0x58]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00404940
push 2
sub esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040d410
test eax, eax
je 0x40bdbc
push eax
push ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c670
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x40bd86
mov eax, dword [edi]
jmp 0x40bd88
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bd98
test al, 0x10
jne 0x40bdab
cmp dword [edi + 0x14], 8
jb 0x40bda0
mov edi, dword [edi]
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebp - 0x2c], 8
jb 0x40bdb9
push dword [ebp - 0x40]
call esi
add esp, 4
mov edi, dword [ebp - 0x74]
cmp dword [ebx + 0x14], 8
jb 0x40bdc6
mov eax, dword [ebx]
jmp 0x40bdc8
mov eax, ebx
cmp dword [edi + 0x14], 8
jb 0x40bdd2
mov ecx, dword [edi]
jmp 0x40bdd4
mov ecx, edi
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
test al, al
jne 0x40bf86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00401760
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
push 0xb
xor eax, eax
mov dword [ebp - 0x44], 7
push str.COPY_ERROR
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00404f00
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x70]
call fcn.00406380
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00402f20
cmp dword [ebp - 0x5c], 8
jb 0x40be51
push dword [ebp - 0x70]
call esi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x40be77
push dword [ebp - 0x58]
call esi
add esp, 4
push 0x1e
xor eax, eax
mov dword [ebp - 0x44], 7
push str.CopySourceFile_FAILURE_SOURCE
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00404f00
push edi
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c]
call fcn.00406380
add esp, 4
push str._DESTINATION
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa4]
call fcn.004062e0
add esp, 4
push ebx
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x70]
call fcn.00406380
add esp, 4
xor dl, dl
mov byte [ebp - 4], 8
mov ecx, eax
call fcn.004030c0
cmp dword [ebp - 0x5c], 8
jb 0x40bef6
push dword [ebp - 0x70]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x90], 8
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x40bf1e
push dword [ebp - 0xa4]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x90], 7
cmp dword [ebp - 0x78], 8
mov dword [ebp - 0x94], 0
mov word [ebp - 0xa4], ax
jb 0x40bf4c
push dword [ebp - 0x8c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x78], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
jb 0x40bf71
push dword [ebp - 0x58]
call esi
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x40bf7f
push dword [ebp - 0x40]
call esi
add esp, 4
xor edi, edi
jmp 0x40c085
push 0x1e
xor eax, eax
mov dword [ebp - 0x44], 7
push str.CopySourceFile_SUCCESS_SOURCE
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00404f00
push edi
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x70]
call fcn.00406380
add esp, 4
push str._DESTINATION
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa4]
call fcn.004062e0
add esp, 4
push ebx
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x8c]
call fcn.00406380
add esp, 4
xor dl, dl
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.004030c0
cmp dword [ebp - 0x78], 8
jb 0x40c008
push dword [ebp - 0x8c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x78], 7
cmp dword [ebp - 0x90], 8
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
jb 0x40c033
push dword [ebp - 0xa4]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x90], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x94], 0
mov word [ebp - 0xa4], ax
jb 0x40c05e
push dword [ebp - 0x70]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x40c080
push dword [ebp - 0x58]
call esi
add esp, 4
mov edi, 1
cmp dword [ebp - 0x14], 8
jb 0x40c093
push dword [ebp - 0x28]
call esi
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004176f4
mov esp, ebp
pop ebp
ret