Function at 0x13ca0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x640
push ebx
push esi
push edi
push ebp
mov eax, dword [0x22040]
sub ebx, ebx
mov ecx, dword [0x2203c]
mov esi, dword [esp + 0x654]
mov edi, edi
cmp eax, 0x64
je 0x14207
cmp ecx, 0xffffffff
je 0x13cd4
push esi
call fcn.000146f0
push 0x22558
push 0x22354
call sub.KERNEL32.dll_lstrcpyA
lea eax, [esp + 0x44]
push 0x3f
push eax
push 4
mov eax, dword [0x22048]
push eax
call sub.USER32.dll_LoadStringA
lea eax, [esp + 0x44]
push eax
call sub.KERNEL32.dll_lstrlenA
mov cl, byte [esp + eax + 0x43]
mov eax, ebx
cmp byte [esp + 0x44], bl
mov edi, dword [0x22048]
je 0x13d24
lea edx, [esp + eax + 0x44]
cmp byte [edx], cl
jne 0x13d1d
mov byte [edx], bl
inc eax
cmp byte [esp + eax + 0x44], bl
jne 0x13d13
lea eax, [esp + 0x24]
push 0x20
push eax
push 3
push edi
call sub.USER32.dll_LoadStringA
mov dword [esp + 0x84], 0x4c
mov dword [esp + 0x88], esi
mov eax, dword [0x22048]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], 1
lea eax, [esp + 0x24]
mov dword [esp + 0xa0], 0x22354
mov dword [esp + 0xa4], 0xff
mov dword [esp + 0xa8], 0x22558
mov dword [esp + 0xac], 0xff
mov dword [esp + 0xb0], 0x22250
mov dword [esp + 0xb4], eax
mov eax, dword [0x22040]
cmp eax, 0x68
mov ecx, dword [0x2224c]
je 0x13dd3
cmp eax, 0x69
jb 0x13deb
cmp eax, 0x6a
jbe 0x13de0
jmp 0x13deb
mov dword [esp + 0xb8], 0x80e
jmp 0x13deb
mov dword [esp + 0xb8], 0x180c
mov dword [esp + 0xc0], 0x24490
mov dword [esp + 0xc4], ebx
cmp ecx, ebx
je 0x13e16
or dword [esp + 0xb8], 0x20
mov dword [esp + 0xc8], 0x134f0
jmp 0x13e1d
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
cmp eax, 0x68
je 0x13e35
cmp eax, 0x69
jb 0x13e65
cmp eax, 0x6a
jbe 0x13e50
jmp 0x13e65
lea eax, [esp + 0x84]
push eax
call sub.comdlg32.dll_GetSaveFileNameA
cmp eax, ebx
jne 0x13e65
sub eax, eax
jmp 0x14356
lea eax, [esp + 0x84]
push eax
call sub.comdlg32.dll_GetOpenFileNameA
cmp eax, ebx
je 0x14210
mov eax, dword [esp + 0xbc]
and eax, 0xffff
add eax, 0x22354
push eax
push 0x22558
call sub.KERNEL32.dll_lstrcpyA
push 0x22354
push 0x22250
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [esp + 0xbc]
and eax, 0xffff
push 0x22250
mov byte [eax + 0x2224f], bl
call sub.KERNEL32.dll_lstrlenA
cmp eax, 2
mov eax, dword [0x2203c]
jne 0x13ed3
cmp byte [0x22251], 0x3a
jne 0x13ed3
push 0x24494
push 0x22250
call sub.KERNEL32.dll_lstrcatA
mov eax, dword [0x2203c]
mov ecx, dword [0x22040]
cmp ecx, 0x68
je 0x13ef0
cmp ecx, 0x69
jb 0x13f1e
cmp ecx, 0x6a
jbe 0x13f13
jmp 0x13f1e
push 1
push 0x22354
call sub.KERNEL32.dll__lopen
mov dword [0x2203c], eax
cmp eax, 0xffffffff
jne 0x13f1e
push ebx
push 0x22354
call sub.KERNEL32.dll__lcreat
jmp 0x13f1e
push ebx
push 0x22354
call sub.KERNEL32.dll__lopen
mov dword [0x2203c], eax
cmp eax, 0xffffffff
je 0x14217
mov ecx, dword [0x22040]
cmp ecx, 0x68
je 0x14224
cmp ecx, 0x69
jb 0x14351
cmp ecx, 0x6a
ja 0x14351
push 0x7f02
push ebx
call sub.USER32.dll_LoadCursorA
push eax
call sub.USER32.dll_SetCursor
mov edi, eax
push 1
call sub.USER32.dll_ShowCursor
push 0x22458
push ebx
push 0x24498
push 0x2449c
call sub.KERNEL32.dll_GetTempFileNameA
push ebx
push 0x22458
call sub.KERNEL32.dll__lcreat
mov dword [0x22454], eax
cmp eax, 0xffffffff
mov ecx, dword [0x2203c]
je 0x14270
mov dword [0x22044], ebx
mov byte [esp + 0x13], bl
mov word [esp + 0x14], bx
mov word [esp + 0x16], bx
lea eax, [esp + 0x250]
push eax
mov ebp, ebx
lea eax, [esp + 0x1a]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1f]
push eax
push ecx
call fcn.00013c30
cmp eax, 1
mov ecx, dword [0x2203c]
jne 0x13fe0
mov ebp, 1
mov edi, edi
cmp byte [esp + 0x13], 0xa
je 0x14022
cmp byte [esp + 0x13], 0xd
je 0x14022
cmp ebp, 1
je 0x14054
lea eax, [esp + 0x250]
push eax
lea eax, [esp + 0x1a]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1f]
push eax
push ecx
call fcn.00013c30
cmp eax, 1
mov ecx, dword [0x2203c]
jne 0x14199
inc ebp
jmp 0x13fe0
cmp ebp, 1
je 0x14054
lea eax, [esp + 0x250]
push eax
lea eax, [esp + 0x1a]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1f]
push eax
push ecx
call fcn.00013c30
cmp eax, 1
mov ecx, dword [0x2203c]
jne 0x14199
inc ebp
cmp byte [esp + 0x13], 0xa
je 0x1406b
cmp byte [esp + 0x13], 0xd
je 0x1406b
cmp ebp, 1
jne 0x13fe0
cmp ebp, 1
je 0x1409d
lea eax, [esp + 0x250]
push eax
lea eax, [esp + 0x1a]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1f]
push eax
push ecx
call fcn.00013c30
cmp eax, 1
mov ecx, dword [0x2203c]
jne 0x14199
inc ebp
cmp byte [esp + 0x13], 0x53
jne 0x14190
lea eax, [esp + 0x250]
push eax
lea eax, [esp + 0x1a]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1f]
push eax
push ecx
call fcn.00013c30
cmp eax, 1
mov ecx, dword [0x2203c]
jne 0x14199
inc ebp
cmp byte [esp + 0x13], 0x51
jne 0x14180
lea eax, [esp + 0x250]
push eax
lea eax, [esp + 0x1a]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1f]
push eax
push ecx
call fcn.00013c30
cmp eax, 1
mov ecx, dword [0x2203c]
jne 0x14199
inc ebp
cmp byte [esp + 0x13], 0x4c
jne 0x14170
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea eax, [ebp - 3]
mov dword [esp + 0x20], eax
inc dword [0x22044]
lea eax, [esp + 0x18]
push 0xc
push eax
mov eax, dword [0x22454]
push eax
call sub.KERNEL32.dll__lwrite
cmp eax, 0xffffffff
mov ecx, dword [0x2203c]
jne 0x13fe0
push 0
call sub.USER32.dll_ShowCursor
push edi
call sub.USER32.dll_SetCursor
push esi
call fcn.00013be0
push esi
call fcn.000146f0
sub eax, eax
jmp 0x14356
cmp ebp, 3
jne 0x13fe0
jmp 0x14199
cmp ebp, 2
jne 0x13fe0
jmp 0x14199
cmp ebp, 1
jne 0x13fe0
cmp dword [0x22044], ebx
jne 0x142a0
push ebx
call sub.USER32.dll_ShowCursor
push edi
call sub.USER32.dll_SetCursor
lea eax, [esp + 0x24]
push 0x1f
push eax
push 1
mov eax, dword [0x22048]
push eax
call sub.USER32.dll_LoadStringA
lea eax, [esp + 0xd0]
push 0x7f
push eax
push 0x14
mov eax, dword [0x22048]
push eax
call sub.USER32.dll_LoadStringA
lea eax, [esp + 0x24]
push 0x30
push eax
lea eax, [esp + 0xd8]
push eax
push esi
call sub.USER32.dll_MessageBoxA
push esi
call fcn.000146f0
mov eax, dword [0x22040]
mov ecx, dword [0x2203c]
jmp 0x13cc0
sub eax, eax
jmp 0x14356
sub eax, eax
jmp 0x14356
push esi
call fcn.00013be0
sub eax, eax
jmp 0x14356
mov dword [0x2203c], eax
push 0
push 0
push eax
call sub.KERNEL32.dll__lwrite
cmp eax, 0xffffffff
jne 0x14260
push esi
call fcn.00013be0
mov eax, dword [0x2203c]
push eax
call sub.KERNEL32.dll__lclose
mov dword [0x2203c], 0xffffffff
sub eax, eax
jmp 0x14356
mov dword [0x22038], 0
jmp 0x14351
push 0
call sub.USER32.dll_ShowCursor
push edi
call sub.USER32.dll_SetCursor
push esi
call fcn.00013be0
mov eax, dword [0x2203c]
push eax
call sub.KERNEL32.dll__lclose
mov dword [0x2203c], 0xffffffff
sub eax, eax
jmp 0x14356
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], ebp
inc dword [0x22044]
lea eax, [esp + 0x18]
push 0xc
push eax
mov eax, dword [0x22454]
push eax
call sub.KERNEL32.dll__lwrite
cmp eax, 0xffffffff
push 0
jne 0x142f0
call sub.USER32.dll_ShowCursor
push edi
call sub.USER32.dll_SetCursor
push esi
call fcn.00013be0
push esi
call fcn.000146f0
sub eax, eax
jmp 0x14356
push 0
mov eax, dword [0x2203c]
push eax
call sub.KERNEL32.dll__llseek
mov dword [0x22038], 0
mov dword [0x22034], 0
mov dword [0x22030], 0
push 0
mov eax, dword [0x22044]
dec eax
push eax
push 0
push 1
push esi
call sub.USER32.dll_SetScrollRange
push 1
push 0
push 1
push esi
call sub.USER32.dll_SetScrollPos
push 1
push 0
push esi
call sub.USER32.dll_InvalidateRect
push 0
call sub.USER32.dll_ShowCursor
push edi
call sub.USER32.dll_SetCursor
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x640
ret 4