Function at 0x42f550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44350c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x550
push ebx
push esi
push edi
mov esi, ecx
push 0
lea ecx, [esp + 0x14]
call fcn.00429800
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x568], 0
call fcn.00429800
mov eax, dword [esi]
mov bl, 1
push eax
mov byte [esp + 0x568], bl
call fcn.00428d80
add esp, 4
cmp eax, 2
je 0x42f7c8
cmp eax, 3
je 0x42f7c8
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x24]
call fcn.00429800
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x568], 2
call fcn.00429a60
lea ecx, [esp + 0x20]
mov byte [esp + 0x564], bl
call fcn.0042e660
lea edx, [esp + 0x30]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x42f641
lea ecx, [esp + 0x18]
mov byte [esp + 0x564], al
call fcn.0042e660
lea ecx, [esp + 0x10]
mov dword [esp + 0x564], 0xffffffff
call fcn.0042e660
or eax, 0xffffffff
mov ecx, dword [esp + 0x55c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x30]
push eax
call edi
lea ecx, [esp + eax + 0x30]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, 0x455700
call fcn.00433490
cmp byte [eax], 0x5c
je 0x42f677
push 0x4456f8
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x24]
call fcn.00429800
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x568], 3
call fcn.00429a60
lea ecx, [esp + 0x20]
mov byte [esp + 0x564], bl
call fcn.0042e660
mov edx, dword [esp + 0x10]
push 0
push 0
lea eax, [esp + 0x458]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.0043684f
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x258]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x364]
push edx
lea eax, [esp + 0x48]
push eax
push ecx
call fcn.0043684f
add esp, 0x28
lea edx, [esp + 0x28]
push edx
call edi
test eax, eax
jne 0x42f705
mov ecx, dword [esi]
lea eax, [esp + 0x2c]
push eax
push ecx
jmp 0x42f70d
mov eax, dword [esi]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x348]
push ecx
call edi
test eax, eax
mov ecx, esi
jne 0x42f72d
lea edx, [esp + 0x450]
push edx
jmp 0x42f735
lea eax, [esp + 0x348]
push eax
call fcn.004292f0
lea ecx, [esp + 0x240]
push ecx
mov ecx, esi
call fcn.004292f0
lea edx, [esp + 0x240]
push edx
call edi
test eax, eax
jne 0x42f765
lea eax, [esp + 0x138]
push eax
call edi
test eax, eax
je 0x42f7b8
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x42f7a2
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x42f79f
lea eax, [esp + 0x138]
push eax
call edi
test eax, eax
jne 0x42f795
lea ecx, [esp + 0x240]
push ecx
call edi
cmp byte [esp + eax + 0x23f], 0x22
jne 0x42f79f
lea edx, [esp + 0x138]
push edx
jmp 0x42f7aa
push ebx
jmp 0x42f7aa
lea eax, [esp + 0x138]
push eax
mov ecx, esi
call fcn.004292f0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42f7c1
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_CharUpperA]
mov edx, dword [esi]
push edx
call edi
jmp 0x42f7d1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x564], 0
mov esi, eax
call fcn.0042e660
lea ecx, [esp + 0x10]
mov dword [esp + 0x564], 0xffffffff
call fcn.0042e660
mov ecx, dword [esp + 0x55c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc