Function at 0x402e9a
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x2590]
mov eax, 0x2590
call fcn.004252d0
push 0xffffffffffffffff
push 0x43ba51
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x452440]
xor eax, ebp
mov dword [ebp + 0x258c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x1f4c], ax
lea eax, [ebp + 0x1f4e]
push ebx
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
call fcn.00425220
xor eax, eax
push esi
mov word [ebp + 0x235c], ax
lea eax, [ebp + 0x235e]
push ebx
push eax
call fcn.00425220
push 0x27
lea eax, [ebp + 0x2565]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp + 0x2564], bl
call fcn.00425220
lea edi, [esi + 2]
push edi
lea eax, [ebp + 0xa98]
push ebx
push eax
call fcn.00425220
push edi
lea eax, [ebp + 0x890]
push ebx
push eax
call fcn.00425220
push edi
lea eax, [ebp + 0x688]
push ebx
push eax
call fcn.00425220
add esp, 0x48
push ebx
call fcn.00410520
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
pop ecx
push 0x32
push 0x4500b0
push 0x8a
push ebx
call esi
push 0x32
push str.Aborting_Installation
push 0x8c
push ebx
call esi
push 0x64
push 0x4504a0
push 0x8e
push ebx
call esi
push 0x64
push str.Internal_error_occurred.
push 0x90
push ebx
call esi
push 0x64
push 0x450310
push 0x92
push ebx
call esi
push 0x104
push str.Internal_error_occurred_while_extracting_files_for_installation.
push 0x94
push ebx
call esi
push 0x64
push 0x4503d8
push 0x96
push ebx
call esi
push 0x64
push 0x450248
push 0x98
push ebx
call esi
push 0x104
push str.Cannot_create_folder_for_extracting_installation_files.
push 0x9b
push ebx
call esi
push 0x104
push str.The_Installation_files_seems_to_be_corrupt._nPlease_contact_your_vendor.
push 0x9d
push ebx
call esi
cmp byte [0x4549b0], 1
mov esi, str.c:logsqhunpack.log
jne 0x403045
lea eax, [ebp + 0xfac]
push str.InitInstance:_BEFORE_Calling_InitInstance
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0xf4
push str..QHUnPack.cpp
push esi
call fcn.004014fc
add esp, 0x18
mov ecx, dword [ebp - 0x18]
call fcn.00401ef1
cmp dword [0x456fd4], 2
mov dword [ebp - 0x10], 1
jl 0x403078
mov eax, dword [0x456fdc]
push str._silent
push dword [eax + 4]
call fcn.00425182
pop ecx
pop ecx
test eax, eax
jne 0x403078
mov dword [ebp - 0x10], ebx
cmp dword [0x456fd4], 3
jl 0x4030a0
mov eax, dword [0x456fdc]
push 0x4403a8
push dword [eax + 8]
call fcn.00425182
pop ecx
pop ecx
test eax, eax
jne 0x4030a0
mov dword [ebp - 0x10], 1
cmp byte [0x4549b0], 1
jne 0x4030e6
push 0xfa0
lea eax, [ebp + 0xfac]
push ebx
push eax
call fcn.00425220
lea eax, [ebp + 0xfac]
push str.InitInstance:_BEFORE_Calling_GetModuleFileName
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x136
push str..QHUnPack.cpp
push esi
call fcn.004014fc
add esp, 0x24
push 0x104
lea eax, [ebp + 0x890]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40315a
cmp dword [ebp - 0x10], ebx
je 0x40313c
push str.Aborting_Installation
push 0x4504a0
push str.Internal_error_occurred.
push str._s__s_n_n_s
lea eax, [ebp + 0x2154]
push eax
call fcn.00426df4
add esp, 0x14
push 0x10
push 0x4500b0
lea eax, [ebp + 0x2154]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403153
push 0x114
push str.RESULT
push str.ERROR
call fcn.004024f8
add esp, 0xc
xor eax, eax
jmp 0x403861
push edi
lea eax, [ebp + 0x235c]
push ebx
push eax
call fcn.00425220
add esp, 0xc
lea eax, [ebp + 0x235c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40319e
cmp dword [ebp - 0x10], ebx
je 0x40319a
push str.Aborting_Installation
push 0x4504a0
push 0x450310
jmp 0x403111
push 0x7e
jmp 0x403141
cmp byte [0x4549b0], 1
jne 0x4031d5
lea eax, [ebp + 0xfac]
push str.InitInstance:_Before_Calling_GetPosSize
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x174
mov edi, str..QHUnPack.cpp
push edi
push esi
call fcn.004014fc
add esp, 0x18
jmp 0x4031da
mov edi, str..QHUnPack.cpp
lea eax, [ebp + 0x2564]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x890]
push eax
call fcn.00402764
add esp, 0xc
test eax, eax
jne 0x403220
cmp dword [ebp - 0x10], ebx
je 0x403216
push str.Aborting_Installation
push 0x4504a0
push str.Internal_error_occurred_while_extracting_files_for_installation.
push str._s_n_s_n_n_s
jmp 0x403116
push 0x116
jmp 0x403141
cmp dword [ebp - 0x14], ebx
je 0x403272
push ebx
lea ecx, [ebp + 0x540]
call fcn.004019bc
lea eax, [ebp + 0x2564]
push eax
lea eax, [ebp + 0x60c]
push eax
mov dword [ebp - 4], ebx
call fcn.00425600
pop ecx
pop ecx
lea ecx, [ebp + 0x540]
call fcn.00405d61
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x540]
cmp eax, 2
jne 0x40326d
call fcn.00401a27
jmp 0x403153
call fcn.00401a27
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x890]
push eax
mov dword [ebp - 0x14], ebx
call fcn.00402654
add esp, 0x14
test eax, eax
je 0x4031f8
cmp byte [0x4549b0], 1
jne 0x4032cc
lea eax, [ebp + 0xfac]
push str.InitInstance:_After_Calling_GetPosSize
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x1ac
push edi
push esi
call fcn.004014fc
add esp, 0x18
cmp dword [ebp - 0x14], ebx
jne 0x4032d8
mov dword [ebp - 0x14], 0xc8
push dword [ebp - 0x14]
lea eax, [ebp + 0x235c]
push eax
call fcn.00402250
pop ecx
pop ecx
test eax, eax
jne 0x403310
cmp dword [ebp - 0x10], ebx
je 0x403306
push str.Aborting_Installation
push 0x4504a0
push 0x4503d8
jmp 0x40320c
push 0x81
jmp 0x403141
cmp byte [0x4549b0], 1
jne 0x403340
lea eax, [ebp + 0xfac]
push str.InitInstance:_Disk_available_check_success.
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x1d1
push edi
push esi
call fcn.004014fc
add esp, 0x18
lea eax, [ebp + 0xa98]
push eax
lea eax, [ebp + 0x235c]
push ebx
push eax
call fcn.00401fdb
add esp, 0xc
test eax, eax
jne 0x40337b
cmp dword [ebp - 0x10], ebx
je 0x403374
push str.Aborting_Installation
push 0x4504a0
push 0x450248
jmp 0x403111
push 0x7f
jmp 0x403141
lea eax, [ebp + 0x235c]
push eax
call fcn.004252a9
cmp word [ebp + eax*2 + 0x235a], 0x5c
pop ecx
je 0x4033a6
lea eax, [ebp + 0x235c]
push 0x43e730
push eax
call fcn.004253ee
pop ecx
pop ecx
lea eax, [ebp + 0xa98]
push eax
lea eax, [ebp + 0x235c]
push eax
call fcn.004253ee
cmp byte [0x4549b0], 1
pop ecx
pop ecx
jne 0x4033f2
lea eax, [ebp + 0xa98]
push eax
lea eax, [ebp + 0xfac]
push str.InitInstance:_Unique_filename___s_
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x1f2
push edi
push esi
call fcn.004014fc
add esp, 0x1c
lea eax, [ebp + 0x235c]
push ebx
push eax
call fcn.004254c4
pop ecx
test eax, eax
pop ecx
lea eax, [ebp + 0x235c]
je 0x40343a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40345c
cmp dword [ebp - 0x10], ebx
je 0x403430
push str.Aborting_Installation
push 0x4504a0
push str.Cannot_create_folder_for_extracting_installation_files.
jmp 0x40320c
push 0x115
jmp 0x403141
push eax
call fcn.00401db0
lea eax, [ebp + 0x235c]
push ebx
push eax
call fcn.004254c4
add esp, 0xc
test eax, eax
je 0x40345c
lea eax, [ebp + 0x235c]
jmp 0x40340b
lea eax, [ebp + 0x235c]
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x2b0
push eax
call fcn.0042541c
lea eax, [ebp + 0x235c]
push 0x43e730
push eax
call fcn.004253ee
add esp, 0x10
cmp dword [0x456fd4], 2
jl 0x4034ad
mov eax, dword [0x456fdc]
push str._silent
push dword [eax + 4]
call fcn.00425182
pop ecx
pop ecx
test eax, eax
jne 0x4034ad
mov dword [ebp - 0x1c], 1
cmp byte [0x4549b0], 1
jne 0x4034ef
push 0xfa0
lea eax, [ebp + 0xfac]
push ebx
push eax
call fcn.00425220
lea eax, [ebp + 0xfac]
push str.InitInstance:_After_Calling_GetAttachFileInTempFolder
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x28c
push edi
push esi
call fcn.004014fc
add esp, 0x24
mov eax, dword [ebp - 0x18]
push dword [eax + 0x48]
push 0x43efd4
call fcn.0042819f
pop ecx
pop ecx
test eax, eax
je 0x4036b6
cmp byte [0x4549b0], 1
jne 0x403539
lea eax, [ebp + 0xfac]
push str.InitInstance:_before_Calling_strcpy
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x297
push edi
push esi
call fcn.004014fc
add esp, 0x18
mov eax, dword [ebp - 0x18]
push dword [eax + 0x48]
lea eax, [ebp + 0x688]
push eax
call fcn.0042541c
lea eax, [ebp + 0x235c]
push eax
lea eax, [ebp + 0xda4]
push eax
call fcn.0042541c
lea eax, [ebp + 0xda4]
push str.RPARA.DAT
push eax
call fcn.004253ee
add esp, 0x18
cmp byte [0x4549b0], 1
jne 0x4035a2
lea eax, [ebp + 0xfac]
push str.InitInstance:_before_Calling__access
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x2a2
push edi
push esi
call fcn.004014fc
add esp, 0x18
lea eax, [ebp + 0xda4]
push ebx
push eax
call fcn.004254c4
pop ecx
pop ecx
test eax, eax
jne 0x4035c2
lea eax, [ebp + 0xda4]
push eax
call fcn.00428194
pop ecx
cmp byte [0x4549b0], 1
jne 0x4035f2
lea eax, [ebp + 0xfac]
push str.InitInstance:_before_Calling__open
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x2ad
push edi
push esi
call fcn.004014fc
add esp, 0x18
push 0x104
lea eax, [ebp + 0xca0]
push eax
lea eax, [ebp + 0xda4]
push eax
call fcn.004025e1
push 0x180
lea eax, [ebp + 0xca0]
push 0x8102
push eax
call fcn.004016d1
add esp, 0x18
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4036b6
cmp byte [0x4549b0], 1
jne 0x40365e
lea eax, [ebp + 0xfac]
push str.InitInstance:_before_Calling__write
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x2c0
push edi
push esi
call fcn.004014fc
add esp, 0x18
lea eax, [ebp + 0x688]
push eax
call fcn.004252a9
push eax
lea eax, [ebp + 0x688]
push eax
push dword [ebp - 0x14]
call fcn.0042626a
add esp, 0x10
cmp byte [0x4549b0], 1
jne 0x4036ad
lea eax, [ebp + 0xfac]
push str.InitInstance:_before_Calling__close
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x2c8
push edi
push esi
call fcn.004014fc
add esp, 0x18
push dword [ebp - 0x14]
call fcn.00425a6a
pop ecx
push ebx
lea ecx, [ebp]
call fcn.004039ab
mov ecx, dword [ebp - 0x18]
lea eax, [ebp]
mov dword [ecx + 0x20], eax
cmp byte [0x4549b0], 1
mov dword [ebp - 4], 1
jne 0x4036ff
lea eax, [ebp + 0xfac]
push str.InitInstance:_Before_calling_SetArjAndExtractDirPath
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x2d7
push edi
push esi
call fcn.004014fc
add esp, 0x18
lea eax, [ebp + 0x235c]
push eax
push eax
lea ecx, [ebp]
call fcn.00403be2
cmp byte [0x4549b0], 1
jne 0x40373f
lea eax, [ebp + 0xfac]
push str.InitInstance:_After_calling_SetVisibleMode
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x2df
push edi
push esi
call fcn.004014fc
add esp, 0x18
lea eax, [ebp + 0x235c]
push eax
lea eax, [ebp + 0x1f4c]
push eax
call fcn.0042541c
mov ebx, 0x43fef8
lea eax, [ebp + 0x1f4c]
push ebx
push eax
call fcn.004253ee
add esp, 0x10
cmp byte [0x4549b0], 1
jne 0x403797
lea eax, [ebp + 0xfac]
push str.InitInstance:_Before_calling_ExtractBinResource
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x2ea
push edi
push esi
call fcn.004014fc
add esp, 0x18
lea eax, [ebp + 0x1f4c]
push eax
push 0xad
push ebx
lea ecx, [ebp]
call fcn.004040cd
cmp byte [0x4549b0], 1
jne 0x4037dc
lea eax, [ebp + 0xfac]
push str.InitInstance:_After_calling_ExtractBinResource
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x2f2
push edi
push esi
call fcn.004014fc
add esp, 0x18
push dword [ebp - 0x10]
lea ecx, [ebp]
push dword [ebp - 0x1c]
call fcn.00403b75
cmp byte [0x4549b0], 1
jne 0x40381a
lea eax, [ebp + 0xfac]
push str.InitInstance:_Before_calling_DoModal
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x2fc
push edi
push esi
call fcn.004014fc
add esp, 0x18
lea ecx, [ebp]
call fcn.00405d61
cmp byte [0x4549b0], 1
jne 0x403852
lea eax, [ebp + 0xfac]
push str.InitInstance:_After_calling_DoModal
push eax
call fcn.00426df4
lea eax, [ebp + 0xfac]
push eax
push 0x304
push edi
push esi
call fcn.004014fc
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00403a37
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x258c]
xor ecx, ebp
call fcn.0042529a
add ebp, 0x2590
leave
ret