Function at 0x40a62b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4bc
mov eax, dword [0x44e4f8]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
cmp dword [ebx + 0x88], esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], esi
mov word [esp + 0x58], si
je 0x40a684
lea eax, [ebx + 0x74]
xor edi, edi
call fcn.0040bee5
cmp word [eax], 0x5c
jne 0x40a684
mov dword [ebx + 0x70], 2
mov eax, dword [ebx + 0x70]
cmp eax, 2
jne 0x40a6ff
lea edi, [ebx + 0x74]
lea ecx, [esp + 0x18]
call fcn.0040c09d
push 0xffffffffffffffff
lea ecx, [esp + 0x58]
push ecx
xor ebx, ebx
call fcn.004016e8
push ebx
push 1
lea esi, [esp + 0x20]
call fcn.00401451
cmp dword [esp + 0x68], ebx
jne 0x40a6dc
lea eax, [esp + 0x70]
push eax
call fcn.0040ead4
pop ecx
lea eax, [esp + 0x54]
push eax
lea edi, [esp + 0x74]
call fcn.0040dc65
pop ecx
push ebx
push 1
mov esi, edi
call fcn.00401451
mov ebx, dword [esp + 0x14]
cmp dword [ebx + 0x70], 1
push 0xffffffffffffffff
jne 0x40a80e
lea ecx, [ebx + 0x324]
mov dword [esp + 0x14], ecx
lea eax, [ebx + 0x74]
push ecx
jmp 0x40a81d
cmp eax, esi
jne 0x40a732
push 0x26
lea ecx, [esp + 0x58]
call fcn.0040bf93
lea eax, [esp + 0x58]
mov dword [esp], 0x442e24
push eax
call fcn.0040c86e
pop ecx
pop ecx
push 0x442fb4
lea eax, [esp + 0x58]
push eax
call fcn.0040201c
jmp 0x40a78e
lea eax, [esp + 0xa8]
push eax
mov edi, 0x208
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, esi
je 0x40a768
cmp eax, edi
jae 0x40a768
mov word [esp + 0x4b8], si
lea eax, [esp + 0xa8]
lea esi, [esp + 0x54]
call fcn.00401337
jmp 0x40a78c
lea eax, [esp + 0x70]
push eax
call fcn.0040ead4
pop ecx
lea eax, [esp + 0x54]
push eax
lea edi, [esp + 0x74]
call fcn.0040dc65
pop ecx
push esi
push 1
mov esi, edi
call fcn.00401451
xor esi, esi
cmp dword [ebx + 0x88], esi
je 0x40a6e0
lea eax, [ebx + 0x74]
lea esi, [esp + 0x70]
call fcn.00401aa5
mov edi, 0x443434
push edi
mov eax, esi
call fcn.0040c826
lea eax, [esp + 0x58]
mov dword [esp], 0x442e24
push eax
call fcn.0040c86e
pop ecx
pop ecx
push 0x442fb4
lea eax, [esp + 0x58]
push eax
call fcn.0040201c
push 0xffffffffffffffff
mov eax, esi
push 0
lea esi, [esp + 0x5c]
call fcn.0040203a
mov eax, esi
push edi
push eax
call fcn.0040c86e
pop ecx
pop ecx
push 0x442fb4
mov eax, esi
push eax
call fcn.0040201c
push 0
push 1
lea esi, [esp + 0x78]
call fcn.00401451
jmp 0x40a6e0
add ebx, 0x324
mov dword [esp + 0x14], ebx
push ebx
lea eax, [esp + 0x5c]
xor ebx, ebx
call fcn.004016e8
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp dword [esp + 0x68], eax
je 0x40a9f2
cmp byte [ebx + 0x90], al
je 0x40a9f2
cmp dword [ebx + 0x88], eax
je 0x40a9f2
cmp dword [ebx + 0x338], eax
je 0x40a9f2
lea esi, [esp + 0x34]
call fcn.00402f7a
mov edi, str.SoftwareHaoZip_SFX
mov eax, edi
lea ecx, [esp + 0x70]
call fcn.0040118b
lea eax, [esp + 0x70]
call fcn.00403029
push 0
push 1
lea esi, [esp + 0x78]
mov byte [esp + 0x17], al
call fcn.00401451
cmp byte [esp + 0xf], 0
je 0x40a9e9
push 7
pop eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x88], eax
xor ecx, ecx
push 0xffffffffffffffff
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0xa8], ecx
mov word [esp + 0x98], cx
mov dword [esp + 0x8c], ecx
mov word [esp + 0x7c], cx
call fcn.004016e8
lea esi, [esp + 0x70]
call fcn.0040c911
push 0x25
push 0x3a
call fcn.0040c7f3
push 0x25
push 0x5c
call fcn.0040c7f3
add esp, 0x10
mov eax, edi
lea ecx, [esp + 0x18]
call fcn.0040118b
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x90]
mov edx, esi
lea edi, [esp + 0x38]
call fcn.0040307e
test al, al
je 0x40a93c
cmp dword [esp + 0xa0], ebx
je 0x40a93c
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x54]
call fcn.0040c6cf
test al, al
mov byte [esp + 0xf], 1
je 0x40a940
mov byte [esp + 0xf], bl
push ebx
push 1
lea esi, [esp + 0x20]
call fcn.00401451
cmp byte [esp + 0xf], bl
je 0x40a9ca
mov eax, dword [esp + 0x14]
push 0x3ec
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x40a9b5
cmp byte [ebp + 8], bl
je 0x40a9b5
cmp dword [esp + 0xa4], 8
mov eax, dword [esp + 0x90]
jae 0x40a989
lea eax, [esp + 0x90]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
mov edi, 0x143
push edi
push dword [esp + 0x1c]
call esi
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x40a9ac
lea eax, [esp + 0x58]
push eax
push ebx
push edi
push dword [esp + 0x1c]
call esi
push 0xffffffffffffffff
lea eax, [esp + 0x58]
push eax
xor ebx, ebx
lea eax, [esp + 0x94]
call fcn.004016e8
push ebx
push 1
lea esi, [esp + 0x78]
call fcn.00401451
push ebx
push 1
lea esi, [esp + 0x94]
call fcn.00401451
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x34]
call fcn.0040301a
cmp dword [ebx + 0x2c], 0
lea ecx, [esp + 0x18]
lea edi, [ebx + 0x18]
jne 0x40aa03
lea edi, [esp + 0x54]
call fcn.0040c09d
push 0xffffffffffffffff
add ebx, 0x298
push ebx
xor ebx, ebx
call fcn.004016e8
push ebx
push 1
lea esi, [esp + 0x20]
call fcn.00401451
push ebx
push 1
lea esi, [esp + 0x5c]
call fcn.00401451
mov ecx, dword [esp + 0x4c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043223b
mov esp, ebp
pop ebp
ret 4