Function at 0x100b22b1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
and dword [ebp - 0x20], 0
and dword [ebp - 0xc], 0
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100b22da
xor eax, eax
jmp 0x100b2499
push str.LoadLibraryExA
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x100ef2c4
push dword [ebp + 8]
call fcn.1003fd10
pop ecx
pop ecx
test eax, eax
je 0x100b232a
cmp dword [ebp - 0xc], 0
je 0x100b2313
push 8
push 0
push dword [ebp + 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
jmp 0x100b231f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
jmp 0x100b2496
cmp dword [ebp - 0xc], 0
je 0x100b2357
push str.AddDllDirectory
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100b2357
push 0x800
push 0
push dword [ebp + 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
jmp 0x100b2496
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x100b2496
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
mov byte [ebp - 2], al
inc dword [ebp - 0x10]
cmp byte [ebp - 2], 0
jne 0x100b237b
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
lea eax, [ecx + eax + 1]
push eax
call dword [0x100e8664]
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100b248c
push dword [ebp - 0x28]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100b248c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [ebp - 3], al
inc dword [ebp - 0x14]
cmp byte [ebp - 3], 0
jne 0x100b23db
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x48]
mov cx, word [0x100ef2d8]
mov word [eax], cx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
mov byte [ebp - 4], al
inc dword [ebp - 0x18]
cmp byte [ebp - 4], 0
jne 0x100b2412
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x2c]
mov al, byte [eax]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp - 1]
mov byte [eax], cl
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp byte [ebp - 1], 0
jne 0x100b2441
cmp dword [ebp - 0xc], 0
je 0x100b247a
push 8
push 0
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
jmp 0x100b2486
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
push dword [ebp - 8]
call dword [0x100e8674]
pop ecx
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret