Function at 0x403140
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x344
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push 0x103
lea eax, [esp + 0x141]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x148], bl
call fcn.0041c150
add esp, 0xc
push 0x103
lea ecx, [esp + 0x39]
push ebx
push ecx
mov byte [esp + 0x40], bl
call fcn.0041c150
add esp, 0xc
push 0x103
lea edx, [esp + 0x249]
push ebx
push edx
mov byte [esp + 0x250], bl
call fcn.0041c150
add esp, 0xc
push 0x104
lea eax, [esp + 0x140]
push eax
push ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x13c]
push ecx
call fcn.00407100
add esp, 4
test eax, eax
jne 0x403235
push str._ExtractZip__Current_exe_file_is_not_exsit
push 0x3d3
push str..Setup.cpp
push 1
mov ecx, str.ExtractZip
call fcn.00405d70
push str._ExtractZip__Current_exe_file_is_not_exsit
push 0x3d3
push str..Setup.cpp
push 1
mov ecx, str.ExtractZip
call fcn.00405a90
add esp, 0x20
xor eax, eax
jmp 0x403508
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, closesocket
lea eax, [esp + 0x14c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00407620
add esp, 0x10
test eax, eax
jne 0x4032a9
push str._ExtractZip__Create_Exe_file_map_fail
push 0x3da
push str..Setup.cpp
push 1
mov ecx, str.ExtractZip
call fcn.00405d70
push str._ExtractZip__Create_Exe_file_map_fail
push 0x3da
push str..Setup.cpp
push 1
mov ecx, str.ExtractZip
call fcn.00405a90
add esp, 0x20
xor eax, eax
jmp 0x403508
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x28]
call fcn.00403530
add esp, 8
test eax, eax
jne 0x403322
push str._ExtractZip__Cannot_find_zip_stub_in_current_exe
push 0x3e0
push str..Setup.cpp
push 1
mov ecx, str.ExtractZip
call fcn.00405d70
push str._ExtractZip__Cannot_find_zip_stub_in_current_exe
push 0x3e0
push str..Setup.cpp
push 1
mov ecx, str.ExtractZip
call fcn.00405a90
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
xor eax, eax
jmp 0x403508
lea eax, [esp + 0x34]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x34]
push ecx
push ebx
push 0x425344
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x70]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x18], eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0xc0000000
lea eax, [esp + 0x44]
call fcn.00407620
add esp, 0x10
test eax, eax
jne 0x4033d5
push str._ExtractZip__Create_Temp_file_map_fail
push 0x3eb
push str..Setup.cpp
push 1
mov ecx, str.ExtractZip
call fcn.00405d70
push str._ExtractZip__Create_Temp_file_map_fail
push 0x3eb
push str..Setup.cpp
push 1
mov ecx, str.ExtractZip
call fcn.00405a90
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
xor eax, eax
jmp 0x403508
mov ecx, dword [ebp + 0x70]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
push ecx
push edx
push edi
call fcn.0041d360
mov eax, dword [ebp + 0x70]
add esp, 0xc
push eax
call fcn.0040ac20
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x24]
push edx
call edi
add ebp, 0x50
push ebp
lea eax, [esp + 0x38]
call fcn.00407220
mov eax, dword [esp + 0x20]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call edi
push ebx
mov edx, esi
lea ecx, [esp + 0x38]
call fcn.0040a780
add esp, 4
test eax, eax
push esi
jge 0x40349b
push str._ExtractZip__Cannot_extract_zip_into_Dir:___s__fail
push 0x3fb
push str..Setup.cpp
push 1
mov ecx, str.ExtractZip
call fcn.00405d70
add esp, 0x14
push esi
push str._ExtractZip__Cannot_extract_zip_into_Dir:___s__fail
push 0x3fb
push str..Setup.cpp
push 1
mov ecx, str.ExtractZip
call fcn.00405a90
add esp, 0x14
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x403508
lea ecx, [esp + 0x248]
push str._sSetup.zip
push ecx
call fcn.00413567
add esp, 0xc
push 3
lea edx, [esp + 0x248]
push edx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push esi
push str._ExtractZip__Extract_bind_zip_to_Folder:__s__ok
push 0x403
push str..Setup.cpp
push 3
mov ecx, str.ExtractZip
call fcn.00405d70
add esp, 0x14
push esi
push str._ExtractZip__Extract_bind_zip_to_Folder:__s__ok
push 0x403
push str..Setup.cpp
push 3
mov ecx, str.ExtractZip
call fcn.00405a90
add esp, 0x14
mov eax, 1
mov ecx, dword [esp + 0x350]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041310b
add esp, 0x344
ret