Function at 0x1011a430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x100], eax
mov dword [esp + 4], ecx
push ebx
push esi
push edi
test ecx, ecx
jne 0x1011a45d
cmp dword [0x10177f58], ecx
jmp 0x1011a469
cmp ecx, 1
jne 0x1011a46f
cmp dword [0x1017812c], 0
jne 0x1011a843
xor edi, edi
xor esi, esi
mov edx, esi
call fcn.1011a270
mov ebx, eax
test ebx, ebx
je 0x1011a495
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x10]
mov edi, eax
test edi, edi
jne 0x1011a5ae
inc esi
cmp esi, 7
jl 0x1011a473
test edi, edi
jne 0x1011a7ae
xor eax, eax
mov esi, 0x101785a8
mov dword [esp + 0x14], eax
nop
mov edx, eax
call fcn.1011a270
mov ebx, eax
test ebx, ebx
je 0x1011a51a
push 0x101785a8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, ebx
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1011a4d0
sub ebx, edx
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1011a4e0
mov ecx, ebx
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x101785a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x1011a654
mov ecx, dword [esp + 0x10]
mov esi, 0x101785a8
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 7
jl 0x1011a4b0
test edi, edi
jne 0x1011a7ae
xor eax, eax
mov dword [esp + 0x14], eax
mov edx, eax
call fcn.1011a270
mov ebx, eax
test ebx, ebx
je 0x1011a595
call fcn.1011a320
mov edx, ebx
nop word [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1011a550
sub ebx, edx
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1011a560
mov ecx, ebx
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x101785a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x10]
mov edi, eax
test edi, edi
jne 0x1011a710
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 7
jge 0x1011a7a6
mov esi, 0x101785a8
jmp 0x1011a536
test ecx, ecx
jne 0x1011a5bd
mov dword [str.node.dll], ebx
jmp 0x1011a7b2
mov dword [str.mb.dll], ebx
cmp esi, 6
ja case.0x1011a5c8.1
jmp dword [esi*4 + 0x1011a858]
mov esi, dword [0x10177750]
test esi, esi
je 0x1011a5e7
add esi, 8
mov dword [str.node.dll], esi
jmp 0x1011a7ea
xor esi, esi
mov dword [str.node.dll], esi
jmp 0x1011a7ea
mov esi, str.miniblink_node.dll
mov dword [str.node.dll], esi
jmp 0x1011a7ea
mov esi, str.libExuiKrnlnminiblink_node.dll
mov dword [str.node.dll], esi
jmp 0x1011a7ea
mov esi, str.node_x32.dll
mov dword [str.node.dll], esi
jmp 0x1011a7ea
mov esi, str.miniblink_node_x32.dll
mov dword [str.node.dll], esi
jmp 0x1011a7ea
mov esi, str.libExuiKrnlnminiblink_node_x32.dll
mov dword [str.node.dll], esi
jmp 0x1011a7ea
mov esi, str.node.dll
mov dword [str.node.dll], esi
jmp 0x1011a7ea
cmp dword [esp + 0x10], 0
je 0x1011a714
mov eax, dword [esp + 0x14]
mov dword [str.mb.dll], 0x101785a8
cmp eax, 6
ja case.0x1011a672.1
jmp dword [eax*4 + 0x1011a874]
mov ebx, dword [0x10177750]
test ebx, ebx
je 0x1011a688
add ebx, 8
jmp 0x1011a6b4
xor ebx, ebx
jmp 0x1011a6b4
mov ebx, str.miniblink_node.dll
jmp 0x1011a6b4
mov ebx, str.libExuiKrnlnminiblink_node.dll
jmp 0x1011a6b4
mov ebx, str.node_x32.dll
jmp 0x1011a6b4
mov ebx, str.miniblink_node_x32.dll
jmp 0x1011a6b4
mov ebx, str.libExuiKrnlnminiblink_node_x32.dll
jmp 0x1011a6b4
mov ebx, str.node.dll
push 0x101785a8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1011a6c6
mov ecx, 0x101785a8
sub ebx, esi
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x1011a6e0
mov edi, ecx
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, 0x101785a8
mov dword [str.node.dll], esi
jmp 0x1011a7ea
test ecx, ecx
jne 0x1011a723
mov dword [str.node.dll], 0x101785a8
jmp 0x1011a7b2
mov eax, dword [esp + 0x14]
mov dword [str.mb.dll], 0x101785a8
cmp eax, 6
ja case.0x1011a736.1
jmp dword [eax*4 + 0x1011a890]
mov ebx, dword [0x10177750]
test ebx, ebx
je 0x1011a74c
add ebx, 8
jmp 0x1011a778
xor ebx, ebx
jmp 0x1011a778
mov ebx, str.miniblink_node.dll
jmp 0x1011a778
mov ebx, str.libExuiKrnlnminiblink_node.dll
jmp 0x1011a778
mov ebx, str.node_x32.dll
jmp 0x1011a778
mov ebx, str.miniblink_node_x32.dll
jmp 0x1011a778
mov ebx, str.libExuiKrnlnminiblink_node_x32.dll
jmp 0x1011a778
mov ebx, str.node.dll
call fcn.1011a320
mov esi, ebx
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1011a780
mov ecx, 0x101785a8
sub ebx, esi
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x1011a795
jmp 0x1011a6ec
test edi, edi
je 0x1011a843
test ecx, ecx
jne 0x1011a7e4
push 0xd8
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.1012f3e0
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.10118770
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.1012d671
mov esp, ebp
pop ebp
ret
mov esi, dword [str.node.dll]
cmp ecx, 1
jne 0x1011a843
push 0xec
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.1012f3e0
mov eax, dword [0x10177f84]
add esp, 0xc
test eax, eax
sete bl
test eax, eax
jne 0x1011a827
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call esi
push dword [0x1017671c]
call esi
mov dword [0x10177f84], eax
push str.mbInit
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x18]
push ecx
call eax
test bl, bl
je 0x1011a843
call fcn.10119590
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1012d671
mov esp, ebp
pop ebp
ret