Function at 0x409175
Capabilities:
Get common file path

Disassembly:
push 0x498
mov eax, 0x44349f
call fcn.00438522
xor esi, esi
mov dword [ebp - 0x484], esi
mov ebx, ecx
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], esi
mov word [ebp - 0x440], si
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x78]
cmp eax, 2
jne 0x40924d
lea edi, [ebx + 0x7c]
lea ecx, [ebp - 0x4a4]
call fcn.0042f6da
push 0xffffffffffffffff
lea ecx, [ebp - 0x444]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.00401223
push ebx
push 1
lea esi, [ebp - 0x4a4]
mov byte [ebp - 4], bl
call fcn.0040115e
cmp dword [ebp - 0x430], ebx
jne 0x409226
lea eax, [ebp - 0x460]
push eax
call fcn.0040e19f
pop ecx
lea eax, [ebp - 0x444]
push eax
lea edi, [ebp - 0x460]
mov byte [ebp - 4], 2
call fcn.0040d167
pop ecx
push ebx
push 1
mov esi, edi
mov byte [ebp - 4], bl
call fcn.0040115e
mov ebx, dword [ebp - 0x488]
cmp dword [ebx + 0x78], 1
push 0xffffffffffffffff
jne 0x409378
lea ecx, [ebx + 0x298]
mov dword [ebp - 0x484], ecx
lea eax, [ebx + 0x7c]
push ecx
jmp 0x40938b
cmp eax, esi
jne 0x409285
push 0x26
lea ecx, [ebp - 0x444]
call fcn.0042f62d
lea eax, [ebp - 0x444]
mov dword [esp], 0x447f44
call fcn.0040c5cf
lea eax, [ebp - 0x444]
mov dword [esp], 0x447e4c
push eax
call fcn.00403978
jmp 0x4092f8
lea eax, [ebp - 0x428]
push eax
mov edi, 0x208
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, esi
je 0x4092c4
cmp eax, edi
jae 0x4092c4
lea eax, [ebp - 0x428]
push eax
mov word [ebp - 0x18], si
call fcn.0043634f
pop ecx
lea ecx, [ebp - 0x428]
lea esi, [ebp - 0x444]
call fcn.004011a5
jmp 0x4092f6
lea eax, [ebp - 0x460]
push eax
call fcn.0040e19f
pop ecx
lea eax, [ebp - 0x444]
push eax
lea edi, [ebp - 0x460]
mov byte [ebp - 4], 3
call fcn.0040d167
pop ecx
push esi
push 1
mov esi, edi
mov byte [ebp - 4], 0
call fcn.0040115e
xor esi, esi
cmp dword [ebx + 0x90], esi
je 0x40922c
lea eax, [ebx + 0x7c]
lea esi, [ebp - 0x460]
call fcn.00403959
push 0x447f44
lea eax, [ebp - 0x444]
mov byte [ebp - 4], 4
call fcn.0040c5cf
pop ecx
mov edi, 0x447e4c
push edi
lea eax, [ebp - 0x444]
push eax
call fcn.00403978
push 0xffffffffffffffff
mov eax, esi
push 0
lea esi, [ebp - 0x444]
call fcn.00403ece
push 0x44851c
mov eax, esi
call fcn.0040c5cf
pop ecx
push edi
mov eax, esi
push eax
call fcn.00403978
push 0
push 1
lea esi, [ebp - 0x460]
mov byte [ebp - 4], 0
call fcn.0040115e
jmp 0x40922c
add ebx, 0x298
mov dword [ebp - 0x484], ebx
push ebx
lea eax, [ebp - 0x444]
xor ebx, ebx
call fcn.00401223
mov ebx, dword [ebp - 0x488]
xor esi, esi
cmp dword [ebp - 0x430], esi
je 0x409590
cmp byte [ebx + 0x98], 0
je 0x409590
cmp dword [ebx + 0x90], esi
je 0x409590
cmp dword [ebx + 0x2ac], esi
je 0x409590
mov edi, 0x4484f4
push edi
lea eax, [ebp - 0x460]
call fcn.0040392d
lea eax, [ebp - 0x460]
call fcn.0040152f
push esi
push 1
lea esi, [ebp - 0x460]
mov byte [ebp - 0x47d], al
call fcn.0040115e
cmp byte [ebp - 0x47d], 0
je 0x409590
push 7
xor ecx, ecx
pop eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x468], ecx
mov word [ebp - 0x478], cx
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x44c], ecx
mov word [ebp - 0x45c], cx
push 0xffffffffffffffff
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 6
push eax
mov eax, dword [ebp - 0x484]
xor ebx, ebx
call fcn.00401223
lea esi, [ebp - 0x460]
call fcn.0040c698
push 0x3a
call fcn.0040c545
pop ecx
push 0x5c
call fcn.0040c545
pop ecx
push edi
lea eax, [ebp - 0x4a4]
call fcn.0040392d
xor esi, esi
lea eax, [ebp - 0x4a4]
mov byte [ebp - 4], 7
inc esi
push eax
lea edx, [ebp - 0x47c]
lea ecx, [ebp - 0x460]
mov dword [ebp - 0x484], esi
call fcn.00401582
test al, al
je 0x4094c1
cmp dword [ebp - 0x468], ebx
je 0x4094c1
lea eax, [ebp - 0x47c]
lea ecx, [ebp - 0x444]
call fcn.0040c41d
test eax, eax
mov byte [ebp - 0x47d], 1
jne 0x4094c7
mov byte [ebp - 0x47d], bl
push ebx
push esi
lea esi, [ebp - 0x4a4]
mov dword [ebp - 4], 6
call fcn.0040115e
cmp byte [ebp - 0x47d], bl
je 0x40956b
mov eax, dword [ebp - 0x488]
push 0x3ec
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, ebx
mov dword [ebp - 0x484], eax
je 0x409555
cmp byte [ebp + 8], bl
je 0x409555
cmp dword [ebp - 0x464], 8
mov eax, dword [ebp - 0x478]
jae 0x40951f
lea eax, [ebp - 0x478]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
mov edi, 0x143
push edi
push dword [ebp - 0x484]
call esi
cmp dword [ebp - 0x42c], 8
mov eax, dword [ebp - 0x440]
jae 0x40954a
lea eax, [ebp - 0x440]
push eax
push ebx
push edi
push dword [ebp - 0x484]
call esi
push 0xffffffffffffffff
lea eax, [ebp - 0x444]
push eax
xor ebx, ebx
lea eax, [ebp - 0x47c]
call fcn.00401223
push ebx
push 1
lea esi, [ebp - 0x460]
call fcn.0040115e
push ebx
push 1
lea esi, [ebp - 0x47c]
mov byte [ebp - 4], bl
call fcn.0040115e
mov ebx, dword [ebp - 0x488]
cmp dword [ebx + 0x28], 0
lea ecx, [ebp - 0x4a4]
je 0x4095aa
lea edi, [ebx + 0x14]
call fcn.0042f6da
mov byte [ebp - 4], 8
jmp 0x4095b9
lea edi, [ebp - 0x444]
call fcn.0042f6da
mov byte [ebp - 4], 9
push 0xffffffffffffffff
add ebx, 0x230
push ebx
xor ebx, ebx
call fcn.00401223
push ebx
push 1
lea esi, [ebp - 0x4a4]
call fcn.0040115e
push ebx
push 1
lea esi, [ebp - 0x444]
call fcn.0040115e
call fcn.004385a5
ret 4