Function at 0x510fe0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3074]
mov eax, 0x3074
call fcn.0051dcc0
push 0xffffffffffffffff
push 0x5403cb
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x572844]
xor eax, ebp
mov dword [ebp + 0x3070], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x3080]
mov ecx, esi
mov ebx, dword [ebp + 0x307c]
mov eax, ebx
mov dword [ebp - 0x18], esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x511056
test dx, dx
je 0x511052
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x511056
add eax, 4
add ecx, 4
test dx, dx
jne 0x511030
xor eax, eax
jmp 0x51105b
sbb eax, eax
or eax, 1
test eax, eax
je 0x511319
lea eax, [ebp + 0x2070]
mov byte [ebp - 0xd], 0
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movzx eax, word [ebp + 0x2070]
push eax
call fcn.00526748
add esp, 4
mov edi, eax
cmp word [ebp + 0x2070], 0x5c
je 0x5110d7
movzx ecx, word [esi]
cmp ecx, 0x5c
je 0x5110d7
cmp word [ebx], 0x5c
je 0x5110d7
push ecx
call fcn.00526748
movzx ecx, word [ebx]
push ecx
mov dword [ebp - 0x14], eax
call fcn.00526748
add esp, 8
mov ecx, eax
cmp word [esi + 2], 0x3a
mov eax, edi
jne 0x5110c6
mov eax, dword [ebp - 0x14]
cmp word [ebx + 2], 0x3a
je 0x5110cf
mov ecx, edi
cmp eax, ecx
je 0x5110d7
mov byte [ebp - 0xd], 1
push ebx
call fcn.004837b0
test al, al
je 0x511134
lea ecx, [ebp + 0x1038]
call fcn.00481580
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x1038]
push 9
push ebx
call fcn.00481d40
test al, al
je 0x51118b
lea ecx, [ebp + 0x1038]
call fcn.00481800
test al, al
je 0x51118b
push ebx
call fcn.004831b0
test al, al
je 0x51118b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1038]
call fcn.004815d0
cmp byte [ebp - 0xd], 0
jne 0x511149
push ebx
push esi
call fcn.00484180
test al, al
jne 0x511319
lea ecx, [ebp]
call fcn.00481580
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x1038]
call fcn.00481580
mov byte [ebp - 4], 2
lea ecx, [ebp]
push 0
push esi
call fcn.00481d40
test al, al
jne 0x5111a7
push esi
mov ecx, 0x5b68fc
call fcn.0047b330
mov esi, 0xa
jmp 0x5112a1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1038]
call fcn.004815d0
mov eax, 0xf
jmp 0x51131b
push 0x12
push ebx
lea ecx, [ebp + 0x1038]
call fcn.00481a10
test al, al
jne 0x5111c3
mov esi, 0xf
jmp 0x5112a1
push 0
mov ecx, 0x5b68fc
call fcn.0047b850
push 0x40000
mov dword [ebp - 0x28], 0
push 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x40000
call fcn.00525bbb
mov edi, eax
add esp, 8
test edi, edi
jne 0x511215
mov ecx, 0x5b68fc
call fcn.0047b030
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], 0x40000
mov byte [ebp - 4], 3
call fcn.004b3b80
cmp byte [0x5b6904], 0
je 0x51123a
call fcn.004b3b90
test al, al
jne 0x511266
mov eax, dword [ebp]
push 0x40000
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x541740]
lea ecx, [ebp]
call esi
test eax, eax
je 0x5112c3
push eax
push edi
lea ecx, [ebp + 0x1038]
call fcn.004827f0
jmp 0x511223
mov byte [ebp - 4], 2
test edi, edi
je 0x511277
push edi
call fcn.00525b95
add esp, 4
lea ecx, [ebp]
mov esi, 9
call fcn.00481800
lea ecx, [ebp + 0x1038]
call fcn.00481800
push 1
mov ecx, 0x5b68fc
call fcn.0047b850
push ebx
call fcn.004831b0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1038]
call fcn.004815d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004815d0
mov eax, esi
jmp 0x51131b
mov byte [ebp - 4], 2
test edi, edi
je 0x5112d4
push edi
call fcn.00525b95
add esp, 4
lea ecx, [ebp]
call fcn.00481800
lea ecx, [ebp + 0x1038]
call fcn.00481800
push 1
mov ecx, 0x5b68fc
call fcn.0047b850
push dword [ebp - 0x18]
call fcn.004831b0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1038]
call fcn.004815d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004815d0
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 + 0x3070]
xor ecx, ebp
call fcn.0051dca8
lea esp, [ebp + 0x3074]
pop ebp
ret 8