Function at 0x419120
Capabilities:
Get common file path

Disassembly:
sub esp, 0xcd8
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0xcd4], eax
mov eax, dword [esp + 0xcdc]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xcf0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov byte [esp + 0xe4], 0
xor ebp, ebp
xor ebx, ebx
push ebx
lea ecx, [esp + 0x68]
push ecx
push ebp
mov ecx, 0x4e0c08
call fcn.00413aa0
test al, al
je 0x419242
lea eax, [esp + 0xe4]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419180
sub eax, edx
mov edx, eax
lea eax, [esp + 0x64]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419192
sub eax, esi
add eax, edx
cmp eax, 0x3f6
ja 0x419234
test ebp, ebp
je 0x4191c6
lea edi, [esp + 0xe4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4191b4
mov dx, word [0x4b1cc4]
mov word [edi], dx
lea eax, [esp + 0xe4]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4191d0
mov cx, word [0x4b1cc0]
mov dl, byte [0x4b1cc2]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0x64]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4191f1
lea edi, [esp + 0xe4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x419202
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 + 0x68]
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
mov ecx, 0x4e0c08
call fcn.00413aa0
test al, al
jne 0x419173
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x419242
inc ebp
jmp 0x419158
push 0x426
call fcn.0045bde0
push eax
lea ecx, [esp + 0xe8]
push ecx
push 0x425
call fcn.0045bde0
push eax
lea edx, [esp + 0xf0]
push edx
push 0x424
call fcn.0045bde0
push eax
lea eax, [esp + 0x4f8]
push str._s_t_s_t_s_t_s_.exe_t_s_t._t
push eax
call fcn.0049deb5
add esp, 0x1c
cmp byte [esp + 0xcf4], 0
je 0x4192d4
push edi
call fcn.0044dec0
mov esi, eax
test esi, esi
je 0x4192d4
inc esi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4192a4
sub eax, edx
cmp eax, 0x14
jae 0x4192d4
push 0x426
call fcn.0045bde0
push eax
push esi
push esi
lea ecx, [esp + 0x4f0]
push str._s_t._s_t_s_t._t
push ecx
call fcn.0049deb5
add esp, 0x14
cmp byte [esp + 0x4e4], 0
je 0x4192f3
lea eax, [esp + 0x4e4]
cmp byte [eax], 9
jne 0x4192ed
mov byte [eax], 0
inc eax
cmp byte [eax], 0
jne 0x4192e5
push 0x4c
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.0049e460
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4c9360]
mov dword [esp + 0x28], eax
movzx eax, byte [esp + 0xd04]
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0x34d
add eax, 0x140
lea edx, [esp + 0x4e4]
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.0045bde0
push edi
mov dword [esp + 0x4c], eax
call fcn.0044db30
cmp eax, edi
jne 0x41937d
lea ecx, [esp + 0x8e4]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x8e4]
mov dword [esp + 0x44], edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x50], 0x1000c
mov dword [esp + 0x58], 0x4b1774
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
mov esi, eax
test esi, esi
jne 0x4193bd
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x4193bb
lea ecx, [esp + 0x18]
push ecx
mov byte [edi], 0
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov esi, eax
test esi, esi
mov ecx, dword [esp + 0xce4]
pop edi
pop esi
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.0049dea6
add esp, 0xcd8
ret 0x10