Function at 0x419ee0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x4c
push ebx
xor ebx, ebx
cmp word [0x455ba8], bx
push esi
push edi
jne 0x419f03
push 0x455ba8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x419f19
push 0x5c
push 0x455ba8
call fcn.00423fab
add esp, 8
cmp eax, ebx
je 0x419f19
mov word [eax], bx
mov eax, 0x455ba8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x419f21
sub eax, edx
sar eax, 1
cmp eax, 3
jne 0x419f46
cmp word [0x455bac], 0x5c
jne 0x419f46
mov word [0x455bac], bx
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x419f64
mov edx, 0x455ba8
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x419f55
mov eax, dword [esp + 0x6c]
mov esi, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x419f70
mov edi, 0x455ba8
sub eax, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x419f85
mov edx, dword [esp + 0x64]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], 0x4c
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x455ba8
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x200
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0x88002c
mov word [esp + 0x44], bx
mov word [esp + 0x46], bx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], 0x419da0
mov dword [esp + 0x54], ebx
mov ecx, 0x43da74
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41a04a
cmp dx, bx
je 0x41a046
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41a04a
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x41a024
xor eax, eax
jmp 0x41a04f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x41a060
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
jmp 0x41a064
mov eax, dword [esp + 0x70]
mov edx, 0x43db3c
mov ecx, edi
jmp 0x41a070
mov si, word [ecx]
cmp si, word [edx]
jne 0x41a096
cmp si, bx
je 0x41a092
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x41a096
add ecx, 4
add edx, 4
cmp si, bx
jne 0x41a070
xor ecx, ecx
jmp 0x41a09b
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x41a0aa
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
cmp eax, ebx
jne 0x41a0b7
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ecx, 0x43db3c
mov eax, edi
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41a0e6
cmp dx, bx
je 0x41a0e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41a0e6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x41a0c0
xor eax, eax
jmp 0x41a0eb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x41a161
cmp word [esp + 0x46], bx
mov edx, dword [esp + 0x18]
jne 0x41a161
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + ecx - 1]
xor eax, eax
cmp ecx, ebx
jbe 0x41a125
jmp 0x41a110
mov si, word [edx]
add edx, 2
test si, si
jne 0x41a110
add eax, 1
movzx esi, ax
cmp esi, ecx
jb 0x41a110
lea eax, [edx + 2]
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41a130
mov edi, 0x455ba8
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x41a145
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 0x455ba8
pop ebx
add esp, 0x4c
ret