Function at 0x418fb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xce4
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0xce0], eax
mov eax, dword [esp + 0xce8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xcfc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov byte [esp + 0xf0], 0
xor ebp, ebp
xor ebx, ebx
push ebx
lea ecx, [esp + 0x74]
push ecx
push ebp
mov ecx, 0x4e0c18
call fcn.004138f0
test al, al
je 0x4190d2
lea eax, [esp + 0xf0]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419010
sub eax, edx
mov edx, eax
lea eax, [esp + 0x70]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419022
sub eax, esi
add eax, edx
cmp eax, 0x3f6
ja 0x4190c4
test ebp, ebp
je 0x419056
lea edi, [esp + 0xf0]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x419044
mov dx, word [0x4b1cc4]
mov word [edi], dx
lea eax, [esp + 0xf0]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x419060
mov cx, word [0x4b1cc0]
mov dl, byte [0x4b1cc2]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0x70]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419081
lea edi, [esp + 0xf0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x419092
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
inc ebx
push ebx
and ecx, 3
lea eax, [esp + 0x74]
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
mov ecx, 0x4e0c18
call fcn.004138f0
test al, al
jne 0x419003
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x4190d2
inc ebp
jmp 0x418fe8
push 0x426
call fcn.0045b8f0
push eax
lea ecx, [esp + 0xf4]
push ecx
push 0x425
call fcn.0045b8f0
push eax
lea edx, [esp + 0xfc]
push edx
push 0x424
call fcn.0045b8f0
push eax
lea eax, [esp + 0x504]
push str._s_t_s_t_s_t_s_.exe_t_s_t._t
push eax
call fcn.0049e0d5
add esp, 0x1c
cmp byte [esp + 0xd00], 0
je 0x419164
push edi
call fcn.0044d8c0
mov esi, eax
test esi, esi
je 0x419164
inc esi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419134
sub eax, edx
cmp eax, 0x14
jae 0x419164
push 0x426
call fcn.0045b8f0
push eax
push esi
push esi
lea ecx, [esp + 0x4fc]
push str._s_t._s_t_s_t._t
push ecx
call fcn.0049e0d5
add esp, 0x14
cmp byte [esp + 0x4f0], 0
je 0x419183
lea eax, [esp + 0x4f0]
cmp byte [eax], 9
jne 0x41917d
mov byte [eax], 0
inc eax
cmp byte [eax], 0
jne 0x419175
push 0x58
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.0049e680
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4c9360]
mov dword [esp + 0x28], eax
movzx eax, byte [esp + 0xd10]
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0x34d
add eax, 0x140
lea edx, [esp + 0x4f0]
push eax
mov dword [esp + 0x1c], 0x4c
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 0x400
call fcn.0045b8f0
push edi
mov dword [esp + 0x4c], eax
call fcn.0044d530
cmp eax, edi
jne 0x41920d
lea ecx, [esp + 0x8f0]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x8f0]
mov dword [esp + 0x44], edx
cmp byte [esp + 0xd08], 0
mov edi, dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov dword [esp + 0x4c], 0x1000c
mov dword [esp + 0x54], 0x4b1774
jne 0x41925c
call fcn.0043c9b0
cmp eax, 6
jl 0x41925c
or dword [esp + 0x4c], 0x80020
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x60], 0x418f70
mov dword [esp + 0x1c], 0x58
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x419263
lea ecx, [esp + 0x18]
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x419288
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x419286
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
mov byte [edx], 0
call edi
mov esi, eax
test esi, esi
mov ecx, dword [esp + 0xcf0]
pop edi
pop esi
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.0049e0c6
add esp, 0xce4
ret 0x14