Function at 0x402240
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1214
call fcn.0041a6e0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x425460
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40248e
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4022d9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
lea edx, [ebp - 0xa14]
mov ecx, eax
call fcn.00402f2a
push eax
call esi
push eax
push 0x421948
push str._s___failed__Error:_0x_X_____s_
push 0x7ff
lea eax, [ebp - 0x1214]
push 0x800
push eax
call fcn.00401037
add esp, 0x1c
lea eax, [ebp - 0x1214]
mov edx, str.C:ProjectsFolcolorpublic_repo_srcControllerInstaller.cpp
lea ecx, [ebx - 0x4b]
push eax
jmp 0x4024db
push 0x100
lea eax, [ebp - 0x614]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test eax, eax
jne 0x402349
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
lea edx, [ebp - 0xa14]
mov ecx, eax
call fcn.00402f2a
push eax
call esi
push eax
push str.GetModuleBaseNameW
push str._s___failed__Error:_0x_X_____s_
push 0x7ff
lea eax, [ebp - 0x1214]
push 0x800
push eax
call fcn.00401037
add esp, 0x1c
lea eax, [ebp - 0x1214]
mov edx, str.C:ProjectsFolcolorpublic_repo_srcControllerInstaller.cpp
mov ecx, 0xbd
push eax
jmp 0x4024db
lea eax, [ebp - 0x614]
push eax
push esi
push str._s_s
push 0x103
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00401006
add esp, 0x18
cmp eax, 1
jge 0x402384
push str.Path_size_limit_error_
mov edx, str.C:ProjectsFolcolorpublic_repo_srcControllerInstaller.cpp
mov ecx, 0xc0
jmp 0x4024db
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x414]
push edi
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x4023f1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
lea edx, [ebp - 0xa14]
mov ecx, eax
call fcn.00402f2a
push eax
call esi
push eax
push 0x42197c
push str._s___failed__Error:_0x_X_____s_
push 0x7ff
lea eax, [ebp - 0x1214]
push 0x800
push eax
call fcn.00401037
add esp, 0x1c
lea eax, [ebp - 0x1214]
mov edx, str.C:ProjectsFolcolorpublic_repo_srcControllerInstaller.cpp
mov ecx, 0xc3
push eax
jmp 0x4024db
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x402475
push str.README.md
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040aee2
add esp, 0xc
test eax, eax
je 0x40242f
push str.Path_size_limit_error_
mov edx, str.C:ProjectsFolcolorpublic_repo_srcControllerInstaller.cpp
mov ecx, 0xcb
jmp 0x4024db
push 0x425460
push str._sREADME.md
push 0x103
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00401006
add esp, 0x14
cmp eax, 1
jge 0x402464
push str.Path_size_limit_error_
mov edx, str.C:ProjectsFolcolorpublic_repo_srcControllerInstaller.cpp
mov ecx, 0xce
jmp 0x4024db
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
call fcn.004015ce
call fcn.00401552
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040326e
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
lea edx, [ebp - 0xa14]
mov ecx, eax
call fcn.00402f2a
push eax
call esi
push eax
push 0x421934
push str._s___failed__Error:_0x_X_____s_
push 0x7ff
lea eax, [ebp - 0x1214]
push 0x800
push eax
call fcn.00401037
add esp, 0x1c
lea eax, [ebp - 0x1214]
mov edx, str.C:ProjectsFolcolorpublic_repo_srcControllerInstaller.cpp
mov ecx, 0xb3
push eax
call fcn.00402f79
int3