Function at 0x4040e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430cd0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4420
call fcn.00416960
mov eax, dword [0x43e270]
xor eax, ebp
mov dword [ebp - 0x14], 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 - 0x4420], ecx
mov byte [ebp - 0x4419], 0
xor edi, edi
mov dword [ebp - 0x4430], edi
mov dword [ebp - 4], edi
lea ebx, [ecx + 0x1200]
mov eax, ebx
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x404140
sub eax, esi
sar eax, 1
je 0x4041e1
mov eax, ecx
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x404160
sub eax, esi
sar eax, 1
je 0x4041e1
lea eax, [ecx + 0x2200]
lea edx, [ecx + 0x1a00]
lea esi, [ecx + 0x1000]
lea edi, [ecx + 0x800]
push eax
push edx
push esi
push edi
push ecx
push ebx
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_Inf_File:___s__t_t_t_t_t_t____r_n_Driver_name:___s__t_t_t_t_t_t____r_n_command:___s__t_t_t_t_t_t____r_n_parameter:___s_
mov ecx, 0x440628
call fcn.00403b70
add esp, 0x1c
push 0x800
push 0
lea eax, [ebp - 0x2418]
push eax
call fcn.0040d9a0
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x2418]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4041e8
push str.Compress_Fail______Get_Current_Directory_Fail_
mov ecx, 0x440628
call fcn.00403b70
add esp, 4
xor al, al
jmp 0x404651
lea edx, [ebp - 0x1418]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40421f
push str.Compress_Fail______Get_Temp_Directory_Fail_
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x440628
call fcn.00403a30
add esp, 4
xor al, al
jmp 0x404651
push 0x200
push 0
lea eax, [ebp - 0x418]
push eax
call fcn.0040d9a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._04x
lea edx, [ebp - 0x418]
call fcn.004037f0
push 0x3ff
lea ecx, [ebp - 0x418]
push ecx
push 0x400
lea edx, [ebp - 0x1418]
push edx
call fcn.0040d2a5
lea ecx, [ebp - 0x1418]
call fcn.00401830
push 0x800
push 0
lea eax, [ebp - 0x1c18]
push eax
call fcn.0040d9a0
add esp, 0x24
push str.Target.exe
lea ecx, [ebp - 0x1418]
push ecx
push 0x43470c
lea edx, [ebp - 0x1c18]
call fcn.004029a0
add esp, 0xc
lea edi, [ebp - 0x1c18]
lea esi, [ebp - 0x2418]
call fcn.00401000
test eax, eax
je 0x4042c8
push str.Compress_Fail______Copy_Target_file_fail___
jmp 0x404209
push 0
lea edx, [ebp - 0x1c18]
push edx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edi, eax
mov dword [ebp - 0x4430], edi
test edi, edi
jne 0x4042ed
push str.Load_Installer_file_fail__
jmp 0x404203
push 0x200
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0040d9a0
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0xc18]
push ecx
call fcn.0040d9a0
add esp, 0xc
push 0x5c
push ebx
call fcn.0040c87b
add esp, 8
test eax, eax
je 0x40432d
add eax, 2
jmp 0x40432f
mov eax, ebx
lea ecx, [ebp - 0x218]
call fcn.004037d0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x1418]
push eax
push str._s_s.zip
lea edx, [ebp - 0xc18]
call fcn.004029a0
add esp, 0xc
lea ecx, [ebp - 0xc18]
call fcn.00401830
lea ecx, [ebp - 0xc18]
push ecx
push ebx
call fcn.0042f520
add esp, 8
lea edx, [ebp - 0xc18]
mov ecx, 0x440628
push edx
push ebx
test al, al
je 0x404569
push str.Compress_success__s____s_
call fcn.00403b70
add esp, 0xc
push 0
push edi
lea ecx, [ebp - 0xc18]
call fcn.00404a00
mov ecx, 0x440628
test eax, eax
lea eax, [ebp - 0xc18]
push eax
jne 0x404544
push str.Add_file_to_installer_success___s_
call fcn.00403b70
push 0x2000
push 0
lea ecx, [ebp - 0x4418]
push ecx
call fcn.0040d9a0
add esp, 0x14
mov eax, dword [ebp - 0x4420]
add eax, 0x1a00
lea edx, [eax + 2]
jmp 0x4043f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4043f0
sub eax, edx
sar eax, 1
je 0x404470
mov eax, dword [ebp - 0x4420]
add eax, 0x2200
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404410
sub eax, edx
sar eax, 1
mov eax, dword [ebp - 0x4420]
je 0x404450
lea ecx, [eax + 0x2200]
push ecx
add eax, 0x1a00
push eax
lea edx, [ebp - 0x218]
push edx
push str._s_s__s
lea edx, [ebp - 0x4418]
call fcn.004040c0
add esp, 0x10
jmp 0x404470
add eax, 0x1a00
push eax
lea eax, [ebp - 0x218]
push eax
push 0x43470c
lea edx, [ebp - 0x4418]
call fcn.004040c0
add esp, 0xc
push edi
lea ecx, [ebp - 0x4418]
mov edx, str.COMMAND
call fcn.00405040
mov eax, dword [ebp - 0x4420]
add eax, 0x800
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404490
sub eax, edx
sar eax, 1
je 0x404520
mov eax, dword [ebp - 0x4420]
add eax, 0x1000
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4044b0
sub eax, edx
sar eax, 1
je 0x404520
push 0x2000
push 0
lea ecx, [ebp - 0x4418]
push ecx
call fcn.0040d9a0
add esp, 0xc
mov esi, dword [ebp - 0x4420]
lea eax, [esi + 0x800]
push eax
lea edx, [ebp - 0x218]
push edx
push 0x43470c
lea edx, [ebp - 0x4418]
call fcn.004040c0
add esp, 0xc
push edi
lea ecx, [ebp - 0x4418]
mov edx, 0x4354b4
call fcn.00405040
push edi
lea ecx, [esi + 0x1000]
mov edx, str.DRIVER
call fcn.00405040
push edi
mov ecx, 0x435488
mov edx, str.COMPRESSED
call fcn.00405040
mov bl, 1
mov byte [ebp - 0x4419], bl
mov dword [ebp - 4], 0xffffffff
jmp 0x4045d2
push str.Add_file_to_installer_fail____s_
call fcn.00403b70
add esp, 8
mov byte [ebp - 0x4421], 0
push 0x43b58c
lea ecx, [ebp - 0x4421]
push ecx
call fcn.0040eef8
push str.Compreass_Fail____s____s_
call fcn.00403b70
add esp, 0xc
mov byte [ebp - 0x4422], 0
push 0x43b58c
lea eax, [ebp - 0x4422]
push eax
call fcn.0040eef8
mov cl, byte [ebp - 0x4429]
mov byte [ebp - 0x4419], cl
mov dword [ebp - 4], 0xffffffff
mov eax, 0x4045c6
ret
test edi, edi
je 0x40460e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
je 0x4045f4
push str.Update_Resource
mov ecx, 0x440628
call fcn.00403b70
jmp 0x40460b
push str.Update_Resource_fail___
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x440628
call fcn.00403a30
add esp, 4
test bl, bl
je 0x404644
mov edi, dword [ebp - 0x4420]
mov ecx, edi
call fcn.00401830
lea esi, [ebp - 0x1c18]
call fcn.00401000
test eax, eax
je 0x404644
push str.Compress_Fail______Copy_Installer_file_fail___
mov ecx, eax
mov edx, 0x440628
call fcn.00403a30
add esp, 4
xor bl, bl
lea ecx, [ebp - 0x1418]
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 - 0x14]
xor ecx, ebp
call fcn.0040c641
mov esp, ebp
pop ebp
ret