Function at 0x522d70
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3084]
mov eax, 0x3084
call fcn.00530230
push 0xffffffffffffffff
push 0x55559b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x58cb30]
xor eax, ebp
mov dword [ebp + 0x3080], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x3090]
mov ecx, esi
mov ebx, dword [ebp + 0x308c]
mov eax, ebx
mov dword [ebp - 0x18], esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x522de6
test dx, dx
je 0x522de2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x522de6
add eax, 4
add ecx, 4
test dx, dx
jne 0x522dc0
xor eax, eax
jmp 0x522deb
sbb eax, eax
or eax, 1
test eax, eax
je 0x5230a6
lea eax, [ebp + 0x2080]
mov byte [ebp - 0xd], 0
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movzx eax, word [ebp + 0x2080]
push eax
call fcn.00539888
add esp, 4
mov edi, eax
cmp word [ebp + 0x2080], 0x5c
je 0x522e67
movzx ecx, word [esi]
cmp ecx, 0x5c
je 0x522e67
cmp word [ebx], 0x5c
je 0x522e67
push ecx
call fcn.00539888
movzx ecx, word [ebx]
push ecx
mov dword [ebp - 0x14], eax
call fcn.00539888
add esp, 8
mov ecx, eax
cmp word [esi + 2], 0x3a
mov eax, edi
jne 0x522e56
mov eax, dword [ebp - 0x14]
cmp word [ebx + 2], 0x3a
je 0x522e5f
mov ecx, edi
cmp eax, ecx
je 0x522e67
mov byte [ebp - 0xd], 1
push ebx
call fcn.00491350
test al, al
je 0x522ec4
lea ecx, [ebp + 0x1040]
call fcn.0048f110
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x1040]
push 9
push ebx
call fcn.0048f900
test al, al
je 0x522f1b
lea ecx, [ebp + 0x1040]
call fcn.0048f390
test al, al
je 0x522f1b
push ebx
call fcn.00490db0
test al, al
je 0x522f1b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1040]
call fcn.0048f160
cmp byte [ebp - 0xd], 0
jne 0x522ed9
push ebx
push esi
call fcn.00491fa0
test al, al
jne 0x5230a6
lea ecx, [ebp]
call fcn.0048f110
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x1040]
call fcn.0048f110
mov byte [ebp - 4], 2
lea ecx, [ebp]
push 0
push esi
call fcn.0048f900
test al, al
jne 0x522f37
push esi
mov ecx, 0x5d381c
call fcn.004880a0
mov esi, 0xa
jmp 0x52302e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1040]
call fcn.0048f160
mov eax, 0xf
jmp 0x5230a8
push 0x12
push ebx
lea ecx, [ebp + 0x1040]
call fcn.0048f5a0
test al, al
jne 0x522f53
mov esi, 0xf
jmp 0x52302e
push 0
mov ecx, 0x5d381c
call fcn.004885c0
push 0x40000
mov dword [ebp - 0x24], 0
push 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0x40000
call fcn.0053869a
mov edi, eax
add esp, 8
test edi, edi
jne 0x522fa1
mov ecx, 0x5d381c
call fcn.00487da0
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x40000
mov byte [ebp - 4], 3
nop
call fcn.004c12f0
cmp byte [0x5d3824], 0
je 0x522fc7
call fcn.004c1300
test al, al
jne 0x522ff3
mov eax, dword [ebp]
push 0x40000
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x55770c]
lea ecx, [ebp]
call esi
test eax, eax
je 0x523050
push eax
push edi
lea ecx, [ebp + 0x1040]
call fcn.00490400
jmp 0x522fb0
mov byte [ebp - 4], 2
test edi, edi
je 0x523004
push edi
call fcn.0053867f
add esp, 4
lea ecx, [ebp]
mov esi, 9
call fcn.0048f390
lea ecx, [ebp + 0x1040]
call fcn.0048f390
push 1
mov ecx, 0x5d381c
call fcn.004885c0
push ebx
call fcn.00490db0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1040]
call fcn.0048f160
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0048f160
mov eax, esi
jmp 0x5230a8
mov byte [ebp - 4], 2
test edi, edi
je 0x523061
push edi
call fcn.0053867f
add esp, 4
lea ecx, [ebp]
call fcn.0048f390
lea ecx, [ebp + 0x1040]
call fcn.0048f390
push 1
mov ecx, 0x5d381c
call fcn.004885c0
push dword [ebp - 0x18]
call fcn.00490db0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1040]
call fcn.0048f160
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0048f160
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 + 0x3080]
xor ecx, ebp
call fcn.00530218
lea esp, [ebp + 0x3084]
pop ebp
ret 8