Function at 0x105fb0c
Capabilities:
Get hostname
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x948
mov eax, dword [0x1080bec]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x908], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x910], eax
push edi
lea eax, [ebp - 0x944]
xor esi, esi
push eax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ebp - 0x934], esi
mov dword [ebp - 0x918], 0x7ad
mov dword [ebp - 0x940], esi
mov dword [ebp - 0x90c], esi
mov dword [ebp - 0x904], esi
mov dword [ebp - 0x938], esi
mov dword [ebp - 0x944], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x105fba0
push 0x14b3
call fcn.0106bcca
push eax
lea eax, [ebp - 0x2d4]
push 0x1001e40
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x904]
push eax
call sub.NPPTools.dll_CreateBlob
push 1
push 0x10020d8
mov edi, 0x1001f00
push edi
mov ebx, 0x1001eb8
push ebx
push dword [ebp - 0x904]
call sub.NPPTools.dll_SetBoolInBlob
add esp, 0x18
cmp eax, esi
jne 0x105ff02
push esi
push 0x10020cc
push edi
push ebx
push dword [ebp - 0x904]
call sub.NPPTools.dll_SetBoolInBlob
add esp, 0x14
cmp eax, esi
jne 0x105ff02
lea eax, [ebp - 0x90c]
push eax
push dword [ebp - 0x904]
call sub.NPPTools.dll_GetNPPBlobTable
test eax, eax
pop ecx
pop ecx
jne 0x105ff02
mov eax, dword [ebp - 0x90c]
cmp dword [eax], esi
mov dword [ebp - 0x914], esi
jbe 0x105fed1
mov edi, dword [ebp - 0x914]
lea ecx, [ebp - 0x93c]
push ecx
mov dword [ebp - 0x93c], esi
push 0x102a798
mov esi, 0x1001e94
push esi
shl edi, 2
push ebx
push dword [edi + eax + 4]
call sub.NPPTools.dll_GetDwordFromBlob
add esp, 0x14
test byte [ebp - 0x93c], 0x20
jne 0x105feb5
mov eax, dword [ebp - 0x90c]
push dword [edi + eax + 4]
call sub.NPPTools.dll_IsRemoteNPP
test eax, eax
pop ecx
jne 0x105feb5
lea eax, [ebp - 0x938]
push eax
mov eax, dword [ebp - 0x90c]
push 0x102a78c
push esi
push ebx
push dword [edi + eax + 4]
call sub.NPPTools.dll_GetStringFromBlob
add esp, 0x14
test eax, eax
jne 0x105fcef
mov eax, dword [ebp - 0x938]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x105fca3
sub eax, edx
mov dword [ebp - 0x948], eax
je 0x105fcef
lea eax, [ebp - 0x934]
push eax
push dword [ebp - 0x938]
call fcn.0106bbdf
push dword [ebp - 0x934]
lea eax, [ebp - 0x4d4]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 0x934]
call sub.NMSUPP.dll_FreeMemory
and dword [ebp - 0x934], 0
jmp 0x105fd09
push 0x14b3
call fcn.0106bcca
push eax
lea eax, [ebp - 0x4d4]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x92c]
push eax
mov eax, dword [ebp - 0x90c]
push 0x1001e74
push 0x1001ebc
push ebx
push dword [edi + eax + 4]
call sub.NPPTools.dll_GetMacAddressFromBlob
add esp, 0x14
test eax, eax
jne 0x105feb5
lea eax, [ebp - 0x900]
push eax
mov eax, dword [ebp - 0x90c]
push 0x1001ea0
push esi
push ebx
push dword [edi + eax + 4]
call sub.NPPTools.dll_GetStringFromBlob
add esp, 0x14
test eax, eax
jne 0x105feb5
mov esi, dword [sym.imp.msvcrt.dll__mbsicmp]
push 0x102a780
push dword [ebp - 0x900]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x105fd7e
and dword [ebp - 0x930], eax
jmp 0x105fdfc
push 0x102a774
push dword [ebp - 0x900]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x105fd9d
mov dword [ebp - 0x930], 3
jmp 0x105fdfc
push 0x102a76c
push dword [ebp - 0x900]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x105fdbc
mov dword [ebp - 0x930], 4
jmp 0x105fdfc
push 0x102a768
push dword [ebp - 0x900]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x105fddb
mov dword [ebp - 0x930], 0xb
jmp 0x105fdfc
push 0x102a760
push dword [ebp - 0x900]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x105feb5
mov dword [ebp - 0x930], 0xc
cmp dword [0x1085d60], 9
jae 0x105fe27
mov edi, dword [0x1085d60]
imul edi, edi, 0x16
add edi, 0x1083530
inc dword [0x1085d60]
push 5
pop ecx
lea esi, [ebp - 0x930]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x908]
call fcn.0104e150
test eax, eax
jne 0x105fe6e
push 0x148a
call fcn.0106bcca
push eax
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x908]
call fcn.0104e0ac
push 0
push dword [ebp - 0x908]
call sub.NMAPI.dll_SetAddressDatabaseInstanceData
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x910]
call fcn.0104e150
test eax, eax
jne 0x105feb5
push 0x148a
call fcn.0106bcca
push eax
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x910]
call fcn.0104e0ac
push 0
push dword [ebp - 0x910]
call sub.NMAPI.dll_SetAddressDatabaseInstanceData
inc dword [ebp - 0x914]
mov eax, dword [ebp - 0x90c]
mov ecx, dword [ebp - 0x914]
xor esi, esi
cmp ecx, dword [eax]
jb 0x105fc23
mov dword [0x1085d84], 1
xor edi, edi
cmp dword [eax], esi
jbe 0x105ff08
push dword [eax + edi*4 + 4]
call sub.NPPTools.dll_DestroyBlob
mov eax, dword [ebp - 0x90c]
mov dword [eax + edi*4 + 4], esi
mov eax, dword [ebp - 0x90c]
inc edi
cmp edi, dword [eax]
pop ecx
jb 0x105fee1
jmp 0x105ff08
mov dword [0x1085d84], esi
push dword [ebp - 0x904]
call sub.NPPTools.dll_DestroyBlob
pop ecx
push 0x10854d8
push 0x1ff
lea eax, [ebp - 0x8d4]
push eax
push 0x1002088
push 0x102a74c
push 0x102a738
mov dword [ebp - 0x904], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x1060349
call fcn.0105f464
test eax, eax
je 0x1060349
mov ebx, 0x3e8
push ebx
push 2
push 6
call dword [0x1085dd4]
cmp eax, 0xffffffff
mov dword [ebp - 0x914], eax
je 0x1060147
xor eax, eax
lea edi, [ebp - 0x8e4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x8e4], 6
movzx ax, byte [ebp - 0x917]
mov ah, byte [ebp - 0x918]
push 0xe
mov word [ebp - 0x8d8], ax
lea eax, [ebp - 0x8e4]
push eax
push dword [ebp - 0x914]
call dword [0x1085dd0]
test eax, eax
je 0x105ffca
inc dword [ebp - 0x918]
cmp dword [ebp - 0x918], 0xb95
jl 0x105ff8a
mov dword [ebp - 0x900], esi
mov eax, dword [ebp - 0x900]
mov dword [ebp - 0x8fc], eax
lea eax, [ebp - 0x940]
push eax
lea eax, [ebp - 0x8fc]
push eax
push 0x4007
push ebx
push dword [ebp - 0x914]
mov dword [ebp - 0x940], 0x18
call dword [0x1085dcc]
test eax, eax
jne 0x106013b
mov eax, dword [ebp - 0x8f8]
cmp eax, esi
je 0x1060128
lea edx, [ebp - 0x8f4]
mov edx, dword [edx]
mov ecx, 0x1004180
cmp edx, dword [ecx]
je 0x1060128
lea edx, [ebp - 0x8f4]
mov edx, dword [edx]
mov ecx, 0x1004178
cmp edx, dword [ecx]
je 0x1060128
cmp dword [0x1085d60], 9
mov dword [ebp - 0x930], 2
mov dword [ebp - 0x92c], eax
lea esi, [ebp - 0x8f4]
lea edi, [ebp - 0x928]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jae 0x1060090
mov edi, dword [0x1085d60]
imul edi, edi, 0x16
add edi, 0x1083530
inc dword [0x1085d60]
push 5
pop ecx
lea esi, [ebp - 0x930]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x908]
call fcn.0104e150
test eax, eax
jne 0x10600d7
push 0x148a
call fcn.0106bcca
push eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x908]
call fcn.0104e0ac
push 0
push dword [ebp - 0x908]
call sub.NMAPI.dll_SetAddressDatabaseInstanceData
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x910]
call fcn.0104e150
test eax, eax
jne 0x106011e
push 0x148a
call fcn.0106bcca
push eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x910]
call fcn.0104e0ac
push 0
push dword [ebp - 0x910]
call sub.NMAPI.dll_SetAddressDatabaseInstanceData
inc dword [ebp - 0x900]
xor esi, esi
jmp 0x106012e
inc dword [ebp - 0x900]
cmp dword [ebp - 0x900], 0xa
jl 0x105ffd0
push dword [ebp - 0x914]
call dword [0x1085dc8]
cmp dword [0x1085d00], esi
jne 0x1060349
mov eax, dword [0x1085dc4]
cmp eax, esi
je 0x1060349
push 0x200
lea ecx, [ebp - 0x8d4]
push ecx
call eax
cmp eax, 0xffffffff
je 0x1060349
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x8d4]
push eax
mov dword [ebp - 0x930], edi
call fcn.0105f6f9
cmp eax, esi
je 0x106033e
mov ebx, eax
jmp 0x106019b
xor esi, esi
mov word [ebp - 0xcc], si
mov esi, dword [ebx + 0x18]
push 0x31
xor eax, eax
pop ecx
lea edi, [ebp - 0xca]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [esi]
cmp ax, 0x17
jne 0x1060232
xor eax, eax
mov ah, byte [esi + 0x16]
add esi, 8
mov al, byte [esi + 0xf]
push eax
xor eax, eax
mov ah, byte [esi + 0xc]
mov al, byte [esi + 0xd]
push eax
xor eax, eax
mov ah, byte [esi + 0xa]
mov al, byte [esi + 0xb]
push eax
xor eax, eax
mov ah, byte [esi + 8]
mov al, byte [esi + 9]
push eax
xor eax, eax
mov ah, byte [esi + 6]
mov al, byte [esi + 7]
push eax
xor eax, eax
mov ah, byte [esi + 4]
mov al, byte [esi + 5]
push eax
xor eax, eax
mov ah, byte [esi + 2]
mov al, byte [esi + 3]
push eax
xor eax, eax
mov ah, byte [esi]
mov al, byte [esi + 1]
push eax
lea eax, [ebp - 0xcc]
push 0x102a6d8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [ebp - 0x930], 0xd
lea edi, [ebp - 0x92c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x28
movsd dword es:[edi], dword [esi]
jmp 0x1060278
cmp ax, 2
jne 0x1060331
movzx eax, byte [esi + 7]
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
lea eax, [ebp - 0xcc]
push 0x102a6bc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [ebp - 0x930], 1
mov eax, dword [esi + 4]
add esp, 0x18
mov dword [ebp - 0x92c], eax
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x908]
call fcn.0104e150
test eax, eax
jne 0x10602bf
push 0x148a
call fcn.0106bcca
push eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x908]
call fcn.0104e0ac
push 0
push dword [ebp - 0x908]
call sub.NMAPI.dll_SetAddressDatabaseInstanceData
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x910]
call fcn.0104e150
test eax, eax
jne 0x1060306
push 0x148a
call fcn.0106bcca
push eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x910]
call fcn.0104e0ac
push 0
push dword [ebp - 0x910]
call sub.NMAPI.dll_SetAddressDatabaseInstanceData
cmp dword [0x1085d60], 9
jae 0x1060331
mov edi, dword [0x1085d60]
imul edi, edi, 0x16
add edi, 0x1083530
inc dword [0x1085d60]
push 5
pop ecx
lea esi, [ebp - 0x930]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x1060199
jmp 0x1060344
mov dword [0x1085d00], edi
call fcn.0105f5c8
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01070ac3
leave
ret 8