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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570466
mov eax, dword fs:[0]
push eax
mov eax, 0x1264
call fcn.0052c270
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call fcn.0040baa0
mov esi, eax
cmp dword [esi + 0x2340c], 8
lea ecx, [esi + 0x233f8]
jb 0x43b80e
mov ecx, dword [ecx]
mov dword [edi + 0x1080], ecx
mov ecx, dword [edi + 0x1088]
or ecx, 0x801200
mov dword [edi + 0x1088], ecx
mov al, byte [esi + 0x71d]
test al, al
jne 0x43b846
or ecx, 0x120
mov dword [edi + 0x1098], 0x43b270
mov dword [edi + 0x1088], ecx
lea eax, [edi + 0x1054]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
cmp dword [esi + 0x2cc], 1
mov ebx, eax
jne 0x43b87e
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004ba8d0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test ebx, ebx
je 0x43ba8f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
inc eax
push 0x1040
push 0
lea esi, [edi + eax*2]
lea eax, [ebp - 0x1258]
push eax
call fcn.00544020
add esp, 0xc
cmp word [esi], 0
push edi
jne 0x43b8ef
lea ecx, [ebp - 0x1270]
call fcn.004029a0
mov dword [ebp - 4], 0
lea ecx, [edi + 0x1048]
push eax
call fcn.00408a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1270]
call fcn.004038c0
jmp 0x43b930
lea eax, [ebp - 0x1258]
push 0x820
push eax
call fcn.0054bd88
add esp, 0xc
lea eax, [ebp - 0x1258]
push eax
call ebx
cmp word [ebp + eax*2 - 0x125a], 0x5c
je 0x43b930
push 0x588408
lea eax, [ebp - 0x1258]
push 0x820
push eax
call fcn.0054bc95
add esp, 0xc
lea eax, [ebp - 0x1258]
push eax
call ebx
cmp word [esi], 0
je 0x43ba7d
lea ebx, [eax + eax]
jmp 0x43b950
cmp ebx, 0x1040
jae 0x43ba8a
xor eax, eax
push esi
mov word [ebp + ebx - 0x1258], ax
lea eax, [ebp - 0x1258]
push 0x820
push eax
call fcn.0054bc95
xor eax, eax
mov dword [ebp - 0x1260], 0
add esp, 0xc
mov dword [ebp - 0x125c], 0
mov dword [ebp - 0x125c], 7
mov dword [ebp - 0x1260], 0
mov word [ebp - 0x1270], ax
cmp word [ebp - 0x1258], ax
jne 0x43b9b9
xor ecx, ecx
jmp 0x43b9d1
lea ecx, [ebp - 0x1258]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43b9c2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1258]
push eax
lea ecx, [ebp - 0x1270]
call fcn.00406c80
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1270]
push eax
lea ecx, [edi + 0x1048]
call fcn.00408a40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x125c]
cmp eax, 8
jb 0x43ba49
mov ecx, dword [ebp - 0x1270]
inc eax
cmp eax, 0x7fffffff
ja 0x43ba85
add eax, eax
cmp eax, 0x1000
jb 0x43ba40
test cl, 0x1f
jne 0x43ba85
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x43ba85
sub ecx, eax
cmp ecx, 4
jb 0x43ba85
cmp ecx, 0x23
ja 0x43ba85
mov ecx, eax
push ecx
call fcn.0052bd72
add esp, 4
xor eax, eax
mov dword [ebp - 0x125c], 7
push esi
mov dword [ebp - 0x1260], 0
mov word [ebp - 0x1270], ax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], 0
jne 0x43b950
lea eax, [edi + 0x1048]
jmp 0x43ba91
call fcn.00547c01
call fcn.0052c478
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret