Function at 0x414330
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x2268
call fcn.00417910
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00416b40
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x24]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2280]
mov dword [esp + 0x10], 0x4181c4
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2294]
cmp eax, ebx
je 0x4143d3
mov esi, dword [esp + 0x228c]
cmp esi, ebx
je 0x4143d3
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
je 0x4143d3
lea ecx, [ebp + 2]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebp, ebx
rep movsb byte es:[edi], byte [esi]
mov byte [edx + ebp + 1], bl
mov dword [esp + 0x30], edx
jle 0x4143d3
cmp byte [edx], 0x7c
jne 0x4143cf
mov byte [edx], bl
inc edx
dec ebp
jne 0x4143c8
mov eax, dword [esp + 0x22ac]
mov ecx, dword [esp + 0x2298]
cmp eax, ebx
mov dword [esp + 0x3c], ecx
je 0x4143f8
mov eax, dword [esp + 0x22a4]
cmp eax, ebx
je 0x4143f8
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x22b8]
lea edx, [esp + 0x278]
cmp eax, ebx
mov dword [esp + 0x24], 0x4c
mov byte [esp + 0x278], bl
mov dword [esp + 0x44], 0x2000
mov dword [esp + 0x40], edx
mov dword [esp + 0x58], 0x81204
mov byte [esp + 0x70], bl
je 0x41444a
cmp dword [esp + 0x22b0], ebx
je 0x41444a
lea eax, [esp + 0x70]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x24]
push ecx
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
je 0x414553
mov edx, dword [esp + 0x5c]
lea edi, [esp + 0x278]
or ecx, 0xffffffff
xor eax, eax
and edx, 0xffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + edx + 0x278]
lea eax, [esp + ecx + 0x277]
mov cl, byte [esp + ecx + 0x277]
cmp cl, 0x5c
jne 0x414493
mov byte [eax], bl
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + esi + 1], bl
jne 0x4144d3
lea edi, [esp + 0x278]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x278]
push ecx
push eax
call fcn.00416f90
add esp, 8
lea ecx, [esp + 0x10]
push eax
call fcn.00416dd0
jmp 0x414542
mov al, byte [esi]
lea ebp, [esi + 0x2000]
cmp al, bl
je 0x414542
cmp esi, ebp
jae 0x414542
lea ecx, [esp + 0x278]
push esi
push ecx
lea edx, [esp + 0x17c]
push str._s_s
push edx
call sub.MSVCRT.dll_sprintf
lea edi, [esp + 0x184]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x184]
push ecx
push eax
call fcn.00416f90
add esp, 0x18
lea ecx, [esp + 0x10]
push eax
call fcn.00416dd0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
cmp al, bl
jne 0x4144df
cmp byte [esp + 0x70], bl
je 0x414553
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x414564
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [esp + 0x20]
shr edi, 2
shl edi, 2
lea edx, [edi + 8]
push edx
call fcn.00413a60
mov ebx, eax
add esp, 4
mov ecx, edi
mov dword [ebx], 1
mov eax, dword [esp + 0x20]
shr eax, 2
mov dword [ebx + 4], eax
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, ecx
neg esi
sbb esi, esi
lea edi, [ebx + 8]
and esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x4181c0
call fcn.00416d40
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x2268
ret