Function at 0x10127140
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 0x10127175
cmp dword [0x101850e8], ecx
jne 0x101275c3
xor edi, edi
jmp 0x101271ea
cmp ecx, 1
jne 0x10127187
cmp dword [0x101856f8], 0
jne 0x101275c3
xor edi, edi
cmp ecx, 1
jne 0x101271ea
mov eax, dword [0x101847c8]
test eax, eax
je 0x101271ea
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x101271e6
mov eax, dword [0x101847c8]
add eax, 8
push 0xec
mov dword [str.mb.dll], eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.1013bf60
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.10126f30
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.1013a1f3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
xor esi, esi
nop dword [eax]
mov edx, esi
call fcn.10126f80
mov ebx, eax
test ebx, ebx
je 0x10127212
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x10]
mov edi, eax
test edi, edi
jne 0x1012732e
inc esi
cmp esi, 7
jl 0x101271f0
test edi, edi
jne 0x1012752e
xor eax, eax
mov esi, 0x10185c98
mov dword [esp + 0x14], eax
nop dword [eax + eax]
mov edx, eax
call fcn.10126f80
mov ebx, eax
test ebx, ebx
je 0x1012729a
push 0x10185c98
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, ebx
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10127250
sub ebx, edx
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10127260
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 0x10185c98
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x101273d4
mov ecx, dword [esp + 0x10]
mov esi, 0x10185c98
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 7
jl 0x10127230
test edi, edi
jne 0x1012752e
xor eax, eax
mov dword [esp + 0x14], eax
mov edx, eax
call fcn.10126f80
mov ebx, eax
test ebx, ebx
je 0x10127315
call fcn.10127030
mov edx, ebx
nop word [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x101272d0
sub ebx, edx
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x101272e0
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 0x10185c98
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x10]
mov edi, eax
test edi, edi
jne 0x10127490
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 7
jge 0x10127526
mov esi, 0x10185c98
jmp 0x101272b6
test ecx, ecx
jne 0x1012733d
mov dword [str.node.dll], ebx
jmp 0x10127532
mov dword [str.mb.dll], ebx
cmp esi, 6
ja case.0x10127348.1
jmp dword [esi*4 + 0x101275d8]
mov esi, dword [0x101847cc]
test esi, esi
je 0x10127367
add esi, 8
mov dword [str.node.dll], esi
jmp 0x1012756a
xor esi, esi
mov dword [str.node.dll], esi
jmp 0x1012756a
mov esi, str.miniblink_node.dll
mov dword [str.node.dll], esi
jmp 0x1012756a
mov esi, str.libExuiKrnlnminiblink_node.dll
mov dword [str.node.dll], esi
jmp 0x1012756a
mov esi, str.node_x32.dll
mov dword [str.node.dll], esi
jmp 0x1012756a
mov esi, str.miniblink_node_x32.dll
mov dword [str.node.dll], esi
jmp 0x1012756a
mov esi, str.libExuiKrnlnminiblink_node_x32.dll
mov dword [str.node.dll], esi
jmp 0x1012756a
mov esi, str.node.dll
mov dword [str.node.dll], esi
jmp 0x1012756a
cmp dword [esp + 0x10], 0
je 0x10127494
mov eax, dword [esp + 0x14]
mov dword [str.mb.dll], 0x10185c98
cmp eax, 6
ja case.0x101273f2.1
jmp dword [eax*4 + 0x101275f4]
mov ebx, dword [0x101847cc]
test ebx, ebx
je 0x10127408
add ebx, 8
jmp 0x10127434
xor ebx, ebx
jmp 0x10127434
mov ebx, str.miniblink_node.dll
jmp 0x10127434
mov ebx, str.libExuiKrnlnminiblink_node.dll
jmp 0x10127434
mov ebx, str.node_x32.dll
jmp 0x10127434
mov ebx, str.miniblink_node_x32.dll
jmp 0x10127434
mov ebx, str.libExuiKrnlnminiblink_node_x32.dll
jmp 0x10127434
mov ebx, str.node.dll
push 0x10185c98
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10127446
mov ecx, 0x10185c98
sub ebx, esi
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x10127460
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, 0x10185c98
mov dword [str.node.dll], esi
jmp 0x1012756a
test ecx, ecx
jne 0x101274a3
mov dword [str.node.dll], 0x10185c98
jmp 0x10127532
mov eax, dword [esp + 0x14]
mov dword [str.mb.dll], 0x10185c98
cmp eax, 6
ja case.0x101274b6.1
jmp dword [eax*4 + 0x10127610]
mov ebx, dword [0x101847cc]
test ebx, ebx
je 0x101274cc
add ebx, 8
jmp 0x101274f8
xor ebx, ebx
jmp 0x101274f8
mov ebx, str.miniblink_node.dll
jmp 0x101274f8
mov ebx, str.libExuiKrnlnminiblink_node.dll
jmp 0x101274f8
mov ebx, str.node_x32.dll
jmp 0x101274f8
mov ebx, str.miniblink_node_x32.dll
jmp 0x101274f8
mov ebx, str.libExuiKrnlnminiblink_node_x32.dll
jmp 0x101274f8
mov ebx, str.node.dll
call fcn.10127030
mov esi, ebx
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10127500
mov ecx, 0x10185c98
sub ebx, esi
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x10127515
jmp 0x1012746c
test edi, edi
je 0x101275c3
test ecx, ecx
jne 0x10127564
push 0xd8
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.1013bf60
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.10124c20
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.1013a1f3
mov esp, ebp
pop ebp
ret
mov esi, dword [str.node.dll]
cmp ecx, 1
jne 0x101275c3
push 0xec
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.1013bf60
mov eax, dword [0x1018516c]
add esp, 0xc
test eax, eax
sete bl
test eax, eax
jne 0x101275a7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call esi
push dword [0x1018378c]
call esi
mov dword [0x1018516c], 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 0x101275c3
call fcn.10125fb0
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1013a1f3
mov esp, ebp
pop ebp
ret