Function at 0x4b6600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x674014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x685300], 0
jne 0x4b6868
mov esi, dword [0x6852ec]
test esi, esi
je 0x4b6641
test byte [0x676cc0], 1
jne 0x4b6757
jmp 0x4b6868
push 0xc
call fcn.005dc726
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.005dfe70
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0xffffffff
push edi
call fcn.005f8ba4
add esp, 4
cmp eax, 0x7ffffff0
jae 0x4b6892
mov ebx, eax
cmp eax, 5
jae 0x4b66ae
mov byte [esi + 0xb], bl
mov eax, esi
test ebx, ebx
jne 0x4b66d4
jmp 0x4b66e7
lea edi, [ebx + 8]
and edi, 0xfffffff8
lea eax, [edi + edi]
push eax
call fcn.005dc726
add esp, 4
mov dword [esi], eax
or edi, 0x80000000
mov dword [esi + 8], edi
lea edi, [ebp - 0x218]
mov dword [esi + 4], ebx
mov ecx, ebx
add ecx, ebx
push ecx
push edi
push eax
mov edi, eax
call fcn.005df8f0
mov eax, edi
add esp, 0xc
mov word [eax + ebx*2], 0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4b66f8
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push 0x5c
call fcn.004abb74
cmp eax, 0xffffffff
mov bl, 1
je 0x4b6738
lea ecx, [eax + 1]
movzx edx, byte [esi + 0xb]
test dl, dl
js 0x4b6723
cmp eax, edx
jae 0x4b6892
mov byte [esi + 0xb], cl
mov edx, esi
jmp 0x4b6731
cmp dword [esi + 4], eax
jbe 0x4b6892
mov edx, dword [esi]
mov dword [esi + 4], ecx
mov word [edx + eax*2 + 2], 0
mov ecx, esi
push str.debug.log
call fcn.004abd8e
mov dword [0x6852ec], esi
test byte [0x676cc0], 1
je 0x4b6868
cmp byte [esi + 0xb], 0
jns 0x4b675f
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x624a10]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x685300], eax
inc eax
cmp eax, 1
ja 0x4b6868
lea eax, [ebp - 0x216]
push 0x206
push 0xff
push eax
call fcn.005dfe70
add esp, 0xc
mov word [ebp - 0x218], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x4b6866
mov ecx, dword [0x6852ec]
push esi
call fcn.004ab558
mov ecx, dword [0x6852ec]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x4b687f
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x5c
je 0x4b6812
push 0x61d944
call fcn.004abd8e
mov ecx, dword [0x6852ec]
push str.debug.log
call fcn.004abd8e
mov eax, dword [0x6852ec]
cmp byte [eax + 0xb], 0
jns 0x4b6829
mov eax, dword [eax]
movaps xmm0, xmmword [0x624a10]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x685300], eax
inc eax
cmp eax, 1
ja 0x4b6868
mov dword [0x685300], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd6f3
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x4b6802
jmp 0x4b6812
call fcn.005f1440
int3