Function at 0x419020
Capabilities:
Get common file path

Disassembly:
sub esp, 0xce4
mov eax, dword [0x4c03a0]
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, 0x4e0c60
call fcn.00413930
test al, al
je 0x419142
lea eax, [esp + 0xf0]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419080
sub eax, edx
mov edx, eax
lea eax, [esp + 0x70]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419092
sub eax, esi
add eax, edx
cmp eax, 0x3f6
ja 0x419134
test ebp, ebp
je 0x4190c6
lea edi, [esp + 0xf0]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4190b4
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 0x4190d0
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 0x4190f1
lea edi, [esp + 0xf0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x419102
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, 0x4e0c60
call fcn.00413930
test al, al
jne 0x419073
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x419142
inc ebp
jmp 0x419058
push 0x426
call fcn.0045be10
push eax
lea ecx, [esp + 0xf4]
push ecx
push 0x425
call fcn.0045be10
push eax
lea edx, [esp + 0xfc]
push edx
push 0x424
call fcn.0045be10
push eax
lea eax, [esp + 0x504]
push str._s_t_s_t_s_t_s_.exe_t_s_t._t
push eax
call fcn.0049e635
add esp, 0x1c
cmp byte [esp + 0xd00], 0
je 0x4191d4
push edi
call fcn.0044de80
mov esi, eax
test esi, esi
je 0x4191d4
inc esi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4191a4
sub eax, edx
cmp eax, 0x14
jae 0x4191d4
push 0x426
call fcn.0045be10
push eax
push esi
push esi
lea ecx, [esp + 0x4fc]
push str._s_t._s_t_s_t._t
push ecx
call fcn.0049e635
add esp, 0x14
cmp byte [esp + 0x4f0], 0
je 0x4191f3
lea eax, [esp + 0x4f0]
cmp byte [eax], 9
jne 0x4191ed
mov byte [eax], 0
inc eax
cmp byte [eax], 0
jne 0x4191e5
push 0x58
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.0049ebe0
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4c93a8]
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.0045be10
push edi
mov dword [esp + 0x4c], eax
call fcn.0044daf0
cmp eax, edi
jne 0x41927d
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 0x4192cc
call fcn.0043cdb0
cmp eax, 6
jl 0x4192cc
or dword [esp + 0x4c], 0x80020
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x60], 0x418fe0
mov dword [esp + 0x1c], 0x58
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x4192d3
lea ecx, [esp + 0x18]
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x4192f8
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x4192f6
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.0049e626
add esp, 0xce4
ret 0x14