Function at 0x403240
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x4404]
mov eax, 0x4404
call fcn.0040fae0
push 0xffffffffffffffff
push 0x427d90
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x43217c]
xor eax, ebp
mov dword [ebp + 0x4400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x11], 0
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
lea eax, [ecx + 0x800]
lea esi, [eax + 2]
jmp 0x4032a0
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x4032a0
sub eax, esi
sar eax, 1
je 0x40333b
mov eax, ecx
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x4032c0
sub eax, esi
sar eax, 1
je 0x40333b
lea ebx, [ecx + 0x3800]
lea eax, [ecx + 0x1800]
lea edx, [ecx + 0x1000]
push ebx
push eax
push edx
push ecx
lea eax, [ecx + 0x800]
push eax
push str.__Compress_Info___t_t_t_t_t_t____r_n_Source_Directory_:___s__t_t_t_t_t_t____r_n_Target_File:___s__t_t_t_t_t_t____r_n_command:___s__t_t_t_t_t_t____r_n_parameter:___s__t_t_t_t_t_t____r_n_Resource:___s_
mov ecx, 0x434070
call fcn.00402cb0
push 0x800
push edi
lea eax, [ebp + 0x2000]
push eax
call fcn.00409180
add esp, 0x24
push 0x400
lea ecx, [ebp + 0x2000]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x403342
push str.Compress_Fail______Get_Current_Directory_Fail_
mov ecx, 0x434070
call fcn.00402cb0
add esp, 4
xor al, al
jmp 0x40370d
lea edx, [ebp + 0x2800]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x403379
push str.Compress_Fail______Get_Temp_Directory_Fail_
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x434070
call fcn.00402b70
add esp, 4
xor al, al
jmp 0x40370d
push 0x200
push edi
lea eax, [ebp + 0x4000]
push eax
call fcn.00409180
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._04x
lea edx, [ebp + 0x4000]
call fcn.00403220
push 0x3ff
lea ecx, [ebp + 0x4000]
push ecx
push 0x400
lea edx, [ebp + 0x2800]
push edx
call fcn.004088f3
lea ecx, [ebp + 0x2800]
call fcn.00401830
push 0x800
push edi
lea eax, [ebp + 0x3000]
push eax
call fcn.00409180
push str.Target.exe
lea ecx, [ebp + 0x2800]
push ecx
push 0x429df4
lea edx, [ebp + 0x3000]
call fcn.00402980
add esp, 0x30
lea edi, [ebp + 0x3000]
lea esi, [ebp + 0x2000]
call fcn.00401000
test eax, eax
je 0x40341d
push str.Compress_Fail______Copy_Target_file_fail___
jmp 0x403363
push 0
lea edx, [ebp + 0x3000]
push edx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x40343f
push str.Load_Installer_file_fail__
jmp 0x40335d
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403444
sub eax, edx
sar eax, 1
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x1c]
je 0x403461
push esi
call fcn.004044c0
push 0x200
push 0
lea eax, [ebp + 0x4200]
push eax
call fcn.00409180
push 0x800
push 0
lea ecx, [ebp + 0x3800]
push ecx
call fcn.00409180
push 0x5c
lea ebx, [edi + 0x800]
push ebx
call fcn.00408245
add esp, 0x20
test eax, eax
je 0x4034a1
add eax, 2
jmp 0x4034a3
mov eax, ebx
push 0xff
push eax
push 0x100
lea edx, [ebp + 0x4200]
push edx
call fcn.004084c5
lea eax, [ebp + 0x4200]
push eax
lea ecx, [ebp + 0x2800]
push ecx
push str._s_s.zip
lea edx, [ebp + 0x3800]
call fcn.00402980
lea ecx, [ebp + 0x3800]
call fcn.00401830
lea edx, [ebp + 0x3800]
push edx
push ebx
call fcn.00427650
add esp, 0x24
test al, al
je 0x40362d
lea eax, [ebp + 0x3800]
push eax
push ebx
push str.Compress_success__s____s_
mov ecx, 0x434070
call fcn.00402cb0
add esp, 0xc
push 0
push esi
lea ecx, [ebp + 0x3800]
call fcn.00403ab0
test eax, eax
jne 0x403602
lea ecx, [ebp + 0x3800]
push ecx
push str.Add_file_to_installer_success___s_
mov ecx, 0x434070
call fcn.00402cb0
push 0x2000
push 0
lea edx, [ebp]
push edx
call fcn.00409180
add esp, 0x14
lea eax, [edi + 0x1000]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403560
sub eax, edx
sar eax, 1
je 0x4035d3
lea eax, [edi + 0x1800]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403580
sub eax, edx
lea edx, [ebp]
sar eax, 1
je 0x4035b8
lea eax, [edi + 0x1800]
push eax
lea eax, [edi + 0x1000]
push eax
lea eax, [ebp + 0x4200]
push eax
push str._s_s__s
call fcn.00403200
add esp, 0x10
jmp 0x4035d3
lea eax, [edi + 0x1000]
push eax
lea ecx, [ebp + 0x4200]
push ecx
push 0x429df4
call fcn.00403200
add esp, 0xc
push esi
lea ecx, [ebp]
mov edx, str.COMMAND
call fcn.004042a0
push esi
mov ecx, str.TRUE
mov edx, str.COMPRESSED
call fcn.004042a0
mov bl, 1
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], 0xffffffff
jmp 0x403694
lea edx, [ebp + 0x3800]
push edx
push str.Add_file_to_installer_fail____s_
mov ecx, 0x434070
call fcn.00402cb0
add esp, 8
mov byte [ebp - 0x12], 0
push 0x42fd8c
lea eax, [ebp - 0x12]
push eax
call fcn.0040a7d8
lea ecx, [ebp + 0x3800]
push ecx
push ebx
push str.Compreass_Fail____s____s_
mov ecx, 0x434070
call fcn.00402cb0
add esp, 0xc
mov byte [ebp - 0x13], 0
push 0x42fd8c
lea edx, [ebp - 0x13]
push edx
call fcn.0040a7d8
mov al, byte [ebp - 0x1d]
mov byte [ebp - 0x11], al
mov dword [ebp - 4], 0xffffffff
mov eax, 0x40368b
ret
test esi, esi
je 0x4036d0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
je 0x4036b6
push str.Update_Resource
mov ecx, 0x434070
call fcn.00402cb0
jmp 0x4036cd
push str.Update_Resource_fail___
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x434070
call fcn.00402b70
add esp, 4
test bl, bl
je 0x403700
mov ecx, edi
call fcn.00401830
lea esi, [ebp + 0x3000]
call fcn.00401000
test eax, eax
je 0x403700
push str.Compress_Fail______Copy_Installer_file_fail___
mov ecx, eax
mov edx, 0x434070
call fcn.00402b70
add esp, 4
xor bl, bl
lea ecx, [ebp + 0x2800]
call fcn.00401830
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4400]
xor ecx, ebp
call fcn.0040800b
add ebp, 0x4404
mov esp, ebp
pop ebp
ret