Function at 0x54ca10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ccdc
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x5c3dd4]
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
push 1
mov dword [ebp - 4], 0
call fcn.0052513e
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov cl, byte [0x5c4930]
sub cl, byte [0x5c4954]
sub cl, 0x42
mov dword [ebp - 0x8c], eax
movzx esi, cl
mov eax, esi
mov dword [0x5c4930], 0x6d9
sub eax, dword [0x5c4954]
push 0x5d1d60
sub eax, 0x6d9
mov dword [0x5c4934], 0
push 0x6d9
mov word [0x5c4954], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
sub esi, dword [0x5c494c]
lea ecx, [ebp - 0x64]
sub esi, dword [0x5c4954]
add byte [0x5c494a], al
add byte [0x5c4949], al
add byte [0x5c4948], al
add byte [0x5c4947], al
add byte [0x5c4946], al
add byte [0x5c4945], al
add byte [0x5c4944], al
add byte [0x5c4943], al
add byte [0x5c4942], al
add byte [0x5c4941], al
mov word [0x5c4954], si
mov bl, byte [0x5c4954]
push 7
sub bl, al
mov dword [0x5c4930], eax
push str.5.88119
mov dword [0x5c4934], 0
sub bl, 8
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
call fcn.00405ff0
mov ecx, dword [0x5c494c]
lea esi, [ebp - 0x64]
movzx eax, bl
lea edi, [ebp - 0x64]
sub ax, cx
mov ebx, dword [ebp - 0x50]
sub ax, word [0x5c4954]
mov word [0x5c4954], ax
mov al, cl
sub al, byte [0x5c4954]
sub al, 0x42
mov byte [ebp - 0x65], al
mov byte [0x5c4943], al
lea eax, [ecx - 0x2114]
sub dword [0x5c4930], eax
lea ecx, [ebp - 0x90]
mov eax, dword [0x5d13a0]
sbb dword [0x5c4934], 0
mov eax, dword [eax + 4]
add eax, 0x5d13a0
cmp ebx, 0x10
mov dword [ebp - 0x84], eax
cmovae esi, dword [ebp - 0x64]
add esi, dword [ebp - 0x54]
cmp ebx, 0x10
cmovae edi, dword [ebp - 0x64]
call fcn.00407e40
lea eax, [ebp - 0x70]
mov dword [ebp - 0x78], esi
push eax
push ecx
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
push eax
push dword [ebp - 0x84]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0x4c]
call fcn.00405520
add esp, 0x14
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00524cba
mov eax, dword [ebp - 0x6c]
add esp, 0x10
fstp dword [ebp - 0x78]
test eax, eax
je 0x54cc17
movss xmm0, dword [ebp - 0x78]
shl eax, 2
cvtps2pd xmm0, xmm0
push eax
sub esp, 8
movsd qword [esp], xmm0
call fcn.0052ec6c
fstp st(0)
add esp, 0xc
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 0x80], esi
jne 0x54cc25
or eax, 1
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x84], ecx
je 0x54cc36
cmp dword [ebp - 0x70], 0
je 0x54cc3c
or eax, 2
mov dword [ebp - 0x74], eax
movzx eax, byte [0x5c4930]
mov bl, byte [ebp - 0x65]
sub al, 0x56
push dword [ebp - 0x78]
add bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x5d13a0]
mov word [ebp - 0x78], 1
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x5d13d8]
lea esi, [eax + 0x5d13a0]
lea eax, [ebp - 0x90]
test edi, edi
push eax
sete byte [ebp - 0x84]
call fcn.00407f80
add esp, 4
lea ecx, [ebp - 0x94]
mov edx, dword [eax]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push esi
push dword [ebp - 0x78]
lea ecx, [ebp - 0x9c]
push 0
push dword [ebp - 0x84]
push edi
push ecx
mov ecx, eax
call dword [edx + 0x18]
movzx eax, byte [0x5c4954]
sub al, byte [0x5c494c]
sub al, 0x59
add bl, al
movzx ecx, bl
call fcn.0054cfe0
mov word [0x5c4954], ax
cmp byte [0x5c4942], bl
jbe 0x54ccd8
add byte [0x5c4941], al
call fcn.0054dfe0
mov eax, dword [0x5c4954]
mov dl, byte [0x5c4942]
lea esi, [eax + eax]
movzx eax, bl
mov ebx, dword [0x5c494c]
add si, ax
add si, word [0x5c4930]
mov eax, 0x45a7
sub si, ax
movzx eax, dl
cmp ax, si
mov word [0x5c4954], si
mov al, byte [0x5c4941]
jbe 0x54cd1c
add al, bl
mov ecx, 0x5a1110
add byte [0x5c494a], cl
add al, cl
add byte [0x5c4949], cl
add dl, cl
add byte [0x5c4948], cl
add byte [0x5c4947], cl
add byte [0x5c4946], cl
add byte [0x5c4945], cl
add byte [0x5c4944], cl
mov byte [0x5c4941], al
mov eax, 0x2122
movzx edi, cl
sub eax, edi
mov byte [0x5c4942], dl
cdq
add eax, 0x41d4
mov dword [ebp - 0x6c], eax
mov dword [0x5c4930], eax
adc edx, 0
mov al, byte [0x5c4940]
mov dword [0x5c4934], edx
cmp al, 3
je 0x54cdb8
mov edx, dword [0x5c494c]
cmp al, 0x23
je 0x54cda8
cmp al, 0xfc
je 0x54cda8
movzx esi, cl
sub si, 0x59
mov word [0x5c4954], si
mov bl, byte [0x5c4954]
jmp 0x54cdd6
mov bl, byte [0x5c4954]
mov al, bl
sub al, dl
sub al, cl
mov cl, al
jmp 0x54cdd6
movzx eax, si
mov ecx, 0x5a11fa
sub edi, eax
sub edi, ebx
mov bl, byte [0x5c4954]
mov edx, edi
sub cl, dl
mov dword [0x5c494c], edx
add cl, bl
mov eax, 0x212a
mov edi, 0x5a1100
sub ax, di
movzx eax, ax
mov bh, al
mov dword [ebp - 0x70], eax
sub bh, cl
mov al, bl
mov cl, byte [0x5c4940]
sub bh, 0x42
shl al, 3
add al, byte [ebp - 0x6c]
cmp cl, 3
je 0x54ce23
cmp cl, 0x23
je 0x54ce33
cmp cl, 0xfc
je 0x54ce33
movzx esi, al
sub si, 0x59
mov word [0x5c4954], si
mov bl, byte [0x5c4954]
jmp 0x54ce33
movzx ecx, al
movzx eax, si
sub ecx, eax
sub ecx, edx
mov dword [0x5c494c], ecx
sub bl, byte [ebp - 0x6c]
movzx eax, byte [0x5c4942]
sub bl, 8
cmp eax, 0xc66ff
jne 0x54ce5d
mov al, byte [0x5c4945]
mov ecx, 0x1055
movzx eax, al
add si, ax
add si, cx
add si, si
movzx ecx, byte [0x5c4944]
cmp cx, si
movzx eax, bl
movzx ecx, byte [0x5c4944]
movzx edx, bh
cmovb edx, eax
movzx edi, bl
mov eax, edi
movzx edx, dl
sub eax, dword [ebp - 0x6c]
sub eax, 0x59
add si, ax
cmp ecx, dword [0x5c494c]
mov word [0x5c4954], si
movzx eax, byte [0x5c4954]
cmovb edx, eax
mov byte [0x5c4943], dl
call fcn.0054dfe0
movzx eax, byte [0x5c4942]
cmp ax, word [0x5c4954]
jbe 0x54cec0
add byte [0x5c4941], bl
mov dl, byte [0x5c4944]
lea eax, [edi - 0x59]
mov ecx, 2
mov word [0x5c4954], ax
cmp bl, dl
je 0x54cee0
add ecx, 2
cmp ecx, 7
jl 0x54ced4
mov si, word [ebp - 0x70]
mov eax, 0x5a1100
add si, ax
movzx ecx, dl
movzx eax, byte [0x5c4954]
cmp cx, si
movzx edx, byte [0x5c4943]
mov ecx, dword [ebp - 0x50]
cmovb edx, eax
mov eax, 0x5c4958
mov byte [0x5c4943], dl
mov word [0x5c4954], ax
mov al, byte [0x5c4950]
sub al, byte [0x5c494c]
sub al, 8
add al, al
sub al, byte [0x5c4930]
sub al, 0x59
movzx esi, al
cmp ecx, 0x10
jb 0x54cf84
mov eax, dword [ebp - 0x64]
inc ecx
cmp ecx, 0xffffffff
jbe 0x54cf44
call fcn.0052f063
cmp ecx, 0x1000
jb 0x54cf7b
test byte [ebp - 0x64], 0x1f
je 0x54cf57
call fcn.0052f063
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x54cf63
call fcn.0052f063
sub eax, ecx
cmp eax, 4
jae 0x54cf6f
call fcn.0052f063
cmp eax, 0x23
jbe 0x54cf79
call fcn.0052f063
mov eax, ecx
push eax
call fcn.00408c6e
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x54cfb8
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x54cfb8
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, esi
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.005235c9
mov esp, ebp
pop ebp
ret 0x10