Function at 0x100087f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov eax, dword [0x10096024]
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x100978ec], 0
jne 0x10008bd4
mov esi, dword [0x100978c8]
test esi, esi
je 0x100088d1
test byte [section..data], 1
je 0x10008bd4
cmp dword [esi + 0x14], 8
jb 0x10008838
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 3
push 4
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x100978ec], eax
inc eax
cmp eax, 1
ja 0x10008bd4
lea ebx, [ebp - 0x218]
mov word [ebp - 0x218], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
ja 0x10008bd2
mov esi, dword [0x100978c8]
push ebx
call fcn.1006bc40
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x14]
cmp eax, edi
jae 0x100089e2
sub esp, 0xc
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
call fcn.10001a2a
mov edi, dword [0x100978c8]
lea eax, [edi + 0x14]
mov esi, edi
mov dword [ebp - 0x220], eax
jmp 0x10008a10
push 0x18
call fcn.1005c8e1
add esp, 4
mov esi, eax
lea ebx, [ebp - 0x218]
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], 0
push ebx
call fcn.1006bc40
add esp, 4
mov edi, eax
cmp eax, 7
jbe 0x10008931
sub esp, 0xc
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
call fcn.10001a2a
jmp 0x10008949
mov eax, edi
mov dword [esi + 0x10], edi
add eax, edi
push eax
push ebx
push esi
call fcn.10061230
add esp, 0xc
mov word [esi + edi*2], 0
mov edi, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ecx, esi
mov bl, 1
cmp edi, 7
jbe 0x1000895a
mov ecx, dword [esi]
test edx, edx
je 0x100089b9
mov ebx, edx
mov dword [ebp - 0x220], edi
add ebx, 0xffffffff
cmovae ebx, edx
cmp word [ecx + ebx*2], 0x5c
lea edi, [ecx + ebx*2]
je 0x100089a5
mov ebx, edx
mov eax, edx
neg ebx
not eax
cmp ebx, eax
cmova eax, ebx
lea ebx, [eax + eax + 2]
nop word [eax + eax]
test ebx, ebx
je 0x10008a77
add ebx, 2
cmp word [edi - 2], 0x5c
lea edi, [edi - 2]
jne 0x10008990
sub edi, ecx
mov bl, 1
cmp edi, 0xfffffffe
jne 0x100089c0
mov edi, dword [ebp - 0x220]
jmp 0x10008a7f
xor edx, edx
jmp 0x10008a7f
sar edi, 1
lea eax, [edi + 1]
cmp edx, eax
jb 0x10008beb
mov dword [esi + 0x10], eax
mov word [ecx + edi*2 + 2], 0
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
jmp 0x10008a7f
mov ecx, ebx
cmp eax, 8
mov ebx, esi
jb 0x100089ed
mov ebx, dword [esi]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], edi
mov dword [ebp - 0x220], eax
mov eax, edi
add eax, edi
push eax
push ecx
push ebx
call fcn.100617b0
add esp, 0xc
mov word [ebx + edi*2], 0
mov edi, esi
mov edx, dword [esi + 0x14]
mov ebx, edi
cmp edx, 8
jb 0x10008a1c
mov ebx, dword [esi]
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
cmp word [ebx + eax*2 - 2], 0x5c
jne 0x10008a31
mov bl, 1
jmp 0x10008b2a
cmp edx, eax
jne 0x10008b0a
sub esp, 0x10
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x1007f1ee
mov dword [esp], 1
call fcn.10001bd2
mov esi, dword [0x100978c8]
mov bl, 1
lea ecx, [esi + 0x10]
lea edx, [esi + 0x14]
jmp 0x10008b25
mov edi, dword [ebp - 0x220]
mov bl, 1
mov eax, edi
sub eax, edx
cmp eax, 9
jae 0x10008ab5
sub esp, 0x10
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 0xc], 9
mov dword [esp + 8], str.debug.log
mov dword [esp], 9
call fcn.10001bd2
jmp 0x10008af2
lea eax, [edx + 9]
cmp edi, 7
mov ecx, esi
mov dword [esi + 0x10], eax
jbe 0x10008ac4
mov ecx, dword [esi]
movzx eax, word [0x1007f202]
movsd xmm0, qword [0x1007f1fa]
movsd xmm1, qword [str.debug.log]
mov word [ecx + edx*2 + 0x10], ax
movsd qword [ecx + edx*2 + 8], xmm0
movsd qword [ecx + edx*2], xmm1
mov word [ecx + edx*2 + 0x12], 0
mov dword [0x100978c8], esi
test byte [section..data], 1
jne 0x10008830
jmp 0x10008bd4
lea ebx, [eax + 1]
cmp edx, 8
mov dword [ecx], ebx
jb 0x10008b16
mov edi, dword [esi]
mov edx, dword [ebp - 0x220]
mov dword [edi + eax*2], 0x5c
mov bl, 1
mov eax, dword [esi + 0x10]
mov edx, dword [edx]
mov edi, edx
sub edi, eax
cmp edi, 9
jae 0x10008b60
sub esp, 0x10
mov al, byte [ebp - 0x21c]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 0xc], 9
mov dword [esp + 8], str.debug.log
mov dword [esp], 9
call fcn.10001bd2
jmp 0x10008b9a
lea edi, [eax + 9]
cmp edx, 8
mov dword [ecx], edi
jb 0x10008b6c
mov esi, dword [esi]
movzx ecx, word [0x1007f202]
movsd xmm0, qword [0x1007f1fa]
movsd xmm1, qword [str.debug.log]
mov word [esi + eax*2 + 0x10], cx
movsd qword [esi + eax*2 + 8], xmm0
movsd qword [esi + eax*2], xmm1
mov word [esi + eax*2 + 0x12], 0
mov eax, dword [0x100978c8]
cmp dword [eax + 0x14], 8
jb 0x10008ba7
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x100978ec], eax
inc eax
cmp eax, 1
ja 0x10008bd4
mov dword [0x100978ec], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005c924
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.10004400