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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x9088
call fcn.00401000
push 0
call dword [ebp + 8]
movzx eax, al
test eax, eax
jne 0x40f81c
push 0
call dword [ebp + 0xc]
movzx ecx, al
test ecx, ecx
jne 0x40f81c
xor al, al
jmp 0x40fd07
mov edx, dword [ebp + 0x20]
push edx
push 0x7fff
lea eax, [ebp - 0x8420]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
call fcn.0041a620
mov dword [ebp - 0x14], 0x42b6cc
cmp dword [ebp - 0x18], 0
je 0x40f90e
lea edx, [ebp - 0x8420]
mov dword [ebp - 0x8428], edx
jmp 0x40f86f
mov eax, dword [ebp - 0x8428]
add eax, 1
mov dword [ebp - 0x8428], eax
mov ecx, dword [ebp - 0x8428]
movsx edx, byte [ecx]
test edx, edx
je 0x40f90e
mov dword [ebp - 0x8430], 0
mov eax, dword [ebp - 0x8428]
mov dword [ebp - 0x842c], eax
jmp 0x40f8ab
mov ecx, dword [ebp - 0x842c]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x842c], eax
mov edx, dword [ebp - 0x842c]
movsx eax, byte [edx]
test eax, eax
je 0x40f8fa
mov ecx, dword [ebp - 0x842c]
movsx edx, byte [ecx]
cmp edx, 0x3d
jne 0x40f8f8
mov eax, dword [ebp - 0x842c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x8428]
mov dword [ebp - 0x8430], ecx
mov edx, dword [ebp - 0x842c]
mov dword [ebp - 0x8428], edx
mov eax, dword [ebp - 0x8428]
add eax, 1
mov dword [ebp - 0x8428], eax
jmp 0x40f8fa
jmp 0x40f898
mov ecx, dword [ebp - 0x8430]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00411d10
jmp 0x40f860
mov dword [ebp - 0x420], 0x400
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, dword [ebp + 0x18]
call dword [sym.imp.DENKIPM.dll_Ordinal_1154]
jmp 0x40f940
mov ecx, dword [ebp + 0x18]
call dword [sym.imp.DENKIPM.dll_Ordinal_1156]
mov ecx, dword [ebp + 0x18]
call dword [sym.imp.DENKIPM.dll_Ordinal_1155]
movzx ecx, al
test ecx, ecx
jne 0x40fa92
mov ecx, dword [ebp + 0x18]
call dword [sym.imp.DENKIPM.dll_Ordinal_1159]
mov dword [ebp - 0x8440], eax
push 0x400
mov edx, dword [ebp - 0x8440]
push edx
lea eax, [ebp - 0x8840]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x8840]
mov dword [ebp - 0x843c], ecx
mov dword [ebp - 0x8438], 0
lea edx, [ebp - 0x8840]
mov dword [ebp - 0x8434], edx
jmp 0x40f9b3
mov eax, dword [ebp - 0x8434]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x8434], eax
mov ecx, dword [ebp - 0x8434]
movsx edx, byte [ecx]
test edx, edx
je 0x40f9f6
mov eax, dword [ebp - 0x8434]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x40f9f4
mov edx, dword [ebp - 0x8434]
mov byte [edx], 0
mov eax, dword [ebp - 0x8434]
add eax, 1
mov dword [ebp - 0x8434], eax
mov ecx, dword [ebp - 0x8434]
mov dword [ebp - 0x8438], ecx
jmp 0x40f9f6
jmp 0x40f9a0
cmp dword [ebp - 0x8438], 0
jne 0x40fa0b
mov edx, dword [ebp - 0x843c]
mov dword [ebp - 0x8438], edx
mov eax, dword [ebp - 0x843c]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40fa2d
mov dword [ebp - 0x843c], 0
cmp dword [ebp - 0x843c], 0
je 0x40fa44
mov edx, dword [ebp - 0x8440]
mov dword [ebp - 0x9088], edx
jmp 0x40fa50
mov eax, dword [ebp - 0x8438]
mov dword [ebp - 0x9088], eax
mov ecx, dword [ebp - 0x9088]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041a8e0
movzx edx, al
test edx, edx
jne 0x40fa8d
mov eax, dword [ebp - 0x8438]
mov dword [ebp - 0x8848], eax
mov dword [ebp - 0x8844], 0
mov ecx, dword [ebp - 0x843c]
push ecx
lea edx, [ebp - 0x8848]
push edx
call dword [ebp + 0x14]
jmp 0x40f937
cmp dword [ebp - 0x18], 0
jne 0x40fab2
mov byte [ebp - 0x8c69], 1
lea ecx, [ebp - 0x14]
call fcn.0041a690
mov al, byte [ebp - 0x8c69]
jmp 0x40fd07
mov eax, dword [ebp - 0x18]
add eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x41c], eax
mov byte [ebp - 0x8421], 1
lea ecx, [ebp - 0x14]
call fcn.00411c00
mov dword [ebp - 4], eax
mov dword [ebp - 0x884c], 0
jmp 0x40faf4
mov ecx, dword [ebp - 0x884c]
add ecx, 1
mov dword [ebp - 0x884c], ecx
mov edx, dword [ebp - 0x884c]
cmp edx, dword [ebp - 4]
jge 0x40fc8f
mov eax, dword [ebp - 0x884c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004012c0
mov dword [ebp - 0x8850], eax
cmp dword [ebp - 0x8850], 0
je 0x40fb3b
mov ecx, dword [ebp - 0x8850]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call fcn.0040fd10
add esp, 8
movzx eax, al
test eax, eax
je 0x40fb3d
jmp 0x40fae5
mov ecx, dword [ebp - 0x8850]
mov dword [ebp - 0x8858], ecx
mov dword [ebp - 0x8854], 0
mov edx, dword [ebp - 0x8850]
mov dword [ebp - 0x9080], edx
jmp 0x40fb74
mov eax, dword [ebp - 0x9080]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x9080], eax
mov ecx, dword [ebp - 0x9080]
movsx edx, byte [ecx]
test edx, edx
je 0x40fb9a
mov eax, dword [ebp - 0x9080]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x40fb98
mov byte [ebp - 0x9081], 0
jmp 0x40fba1
jmp 0x40fb61
mov byte [ebp - 0x9081], 1
movzx edx, byte [ebp - 0x9081]
test edx, edx
je 0x40fbbd
push 0
lea eax, [ebp - 0x8858]
push eax
call dword [ebp + 0x10]
jmp 0x40fc8a
mov ecx, dword [ebp - 0x8850]
mov dword [ebp - 0x885c], ecx
mov edx, dword [ebp - 0x885c]
mov dword [ebp - 0x8860], edx
jmp 0x40fbea
mov eax, dword [ebp - 0x8860]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x8860], eax
mov ecx, dword [ebp - 0x8860]
movsx edx, byte [ecx]
test edx, edx
je 0x40fc21
mov eax, dword [ebp - 0x8860]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x40fc1f
mov edx, dword [ebp - 0x8860]
mov byte [edx], 0
mov eax, dword [ebp - 0x8860]
add eax, 1
mov dword [ebp - 0x8860], eax
jmp 0x40fc21
jmp 0x40fbd7
mov ecx, dword [ebp - 0x8860]
mov dword [ebp - 0x8858], ecx
mov edx, dword [ebp - 0x885c]
push edx
lea eax, [ebp - 0x8858]
push eax
call dword [ebp + 0x10]
movzx ecx, al
test ecx, ecx
jne 0x40fc8a
mov edx, dword [ebp - 0x8860]
sub edx, 1
mov dword [ebp - 0x8860], edx
mov eax, dword [ebp - 0x8860]
mov byte [eax], 0x5c
mov ecx, dword [ebp - 0x8850]
push ecx
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x42c498
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov byte [ebp - 0x8421], 0
jmp 0x40fae5
movzx ecx, byte [ebp - 0x8421]
test ecx, ecx
jne 0x40fce0
push 0x400
lea edx, [ebp - 0x8c68]
push edx
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [0x42f694]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp - 0x41c]
push edx
push 0
mov eax, dword [ebp + 0x28]
push eax
push 0
push 0
lea ecx, [ebp - 0x8c68]
push ecx
push 0x2500
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [ebp - 0x8864], eax
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, byte [ebp - 0x8421]
mov byte [ebp - 0x8c6a], al
lea ecx, [ebp - 0x14]
call fcn.0041a690
mov al, byte [ebp - 0x8c6a]
mov esp, ebp
pop ebp
ret