Function at 0x522250
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3084]
mov eax, 0x3084
call fcn.0052f720
push 0xffffffffffffffff
push 0x55483b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x58bb30]
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 0x5222c6
test dx, dx
je 0x5222c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5222c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x5222a0
xor eax, eax
jmp 0x5222cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x522586
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.00538d78
add esp, 4
mov edi, eax
cmp word [ebp + 0x2080], 0x5c
je 0x522347
movzx ecx, word [esi]
cmp ecx, 0x5c
je 0x522347
cmp word [ebx], 0x5c
je 0x522347
push ecx
call fcn.00538d78
movzx ecx, word [ebx]
push ecx
mov dword [ebp - 0x14], eax
call fcn.00538d78
add esp, 8
mov ecx, eax
cmp word [esi + 2], 0x3a
mov eax, edi
jne 0x522336
mov eax, dword [ebp - 0x14]
cmp word [ebx + 2], 0x3a
je 0x52233f
mov ecx, edi
cmp eax, ecx
je 0x522347
mov byte [ebp - 0xd], 1
push ebx
call fcn.00490c30
test al, al
je 0x5223a4
lea ecx, [ebp + 0x1040]
call fcn.0048ea10
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x1040]
push 9
push ebx
call fcn.0048f200
test al, al
je 0x5223fb
lea ecx, [ebp + 0x1040]
call fcn.0048ec90
test al, al
je 0x5223fb
push ebx
call fcn.004906b0
test al, al
je 0x5223fb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1040]
call fcn.0048ea60
cmp byte [ebp - 0xd], 0
jne 0x5223b9
push ebx
push esi
call fcn.00491600
test al, al
jne 0x522586
lea ecx, [ebp]
call fcn.0048ea10
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x1040]
call fcn.0048ea10
mov byte [ebp - 4], 2
lea ecx, [ebp]
push 0
push esi
call fcn.0048f200
test al, al
jne 0x522417
push esi
mov ecx, 0x5d281c
call fcn.004878a0
mov esi, 0xa
jmp 0x52250e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1040]
call fcn.0048ea60
mov eax, 0xf
jmp 0x522588
push 0x12
push ebx
lea ecx, [ebp + 0x1040]
call fcn.0048eea0
test al, al
jne 0x522433
mov esi, 0xf
jmp 0x52250e
push 0
mov ecx, 0x5d281c
call fcn.00487dc0
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.00537b8a
mov edi, eax
add esp, 8
test edi, edi
jne 0x522481
mov ecx, 0x5d281c
call fcn.004875a0
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x40000
mov byte [ebp - 4], 3
nop
call fcn.004c08b0
cmp byte [0x5d2824], 0
je 0x5224a7
call fcn.004c08c0
test al, al
jne 0x5224d3
mov eax, dword [ebp]
push 0x40000
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x55670c]
lea ecx, [ebp]
call esi
test eax, eax
je 0x522530
push eax
push edi
lea ecx, [ebp + 0x1040]
call fcn.0048fd00
jmp 0x522490
mov byte [ebp - 4], 2
test edi, edi
je 0x5224e4
push edi
call fcn.00537b6f
add esp, 4
lea ecx, [ebp]
mov esi, 9
call fcn.0048ec90
lea ecx, [ebp + 0x1040]
call fcn.0048ec90
push 1
mov ecx, 0x5d281c
call fcn.00487dc0
push ebx
call fcn.004906b0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1040]
call fcn.0048ea60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0048ea60
mov eax, esi
jmp 0x522588
mov byte [ebp - 4], 2
test edi, edi
je 0x522541
push edi
call fcn.00537b6f
add esp, 4
lea ecx, [ebp]
call fcn.0048ec90
lea ecx, [ebp + 0x1040]
call fcn.0048ec90
push 1
mov ecx, 0x5d281c
call fcn.00487dc0
push dword [ebp - 0x18]
call fcn.004906b0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1040]
call fcn.0048ea60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0048ea60
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.0052f708
lea esp, [ebp + 0x3084]
pop ebp
ret 8