Function at 0x401d20
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x42b730]
xor eax, ebp
mov dword [ebp - 0xc], eax
call fcn.0040f640
cmp dword [ebp + 8], 1
je 0x401d41
cmp dword [ebp + 8], 2
jne 0x401d4b
mov eax, dword [ebp + 8]
mov dword [0x428004], eax
jmp 0x401d65
cmp dword [ebp + 8], 0
je 0x401d65
push str.cr:201
call fcn.004100f0
add esp, 4
xor eax, eax
jmp 0x401fe6
cmp dword [0x428004], 1
jne 0x401d82
push str.cr:202
call fcn.004100f0
add esp, 4
xor eax, eax
jmp 0x401fe6
cmp dword [ebp + 0xc], 0
je 0x401d91
mov ecx, dword [ebp + 0xc]
mov dword [0x42b9c0], ecx
push 0
call fcn.0041ffd8
test eax, eax
jne 0x401db0
push str.cr:204
call fcn.004100f0
add esp, 4
xor eax, eax
jmp 0x401fe6
mov dword [ebp - 8], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 8], 0xf0
mov dword [ebp - 0x40], 0xa
mov dword [ebp - 0x48], 0x3c
cmp dword [0x42b9c0], 0
jne 0x401dee
mov edx, dword [ebp - 0x48]
mov dword [0x42b9c0], edx
jmp 0x401e16
mov eax, dword [0x42b9c0]
cmp eax, dword [ebp - 8]
jle 0x401e03
mov ecx, dword [ebp - 0x48]
mov dword [0x42b9c0], ecx
jmp 0x401e16
mov edx, dword [0x42b9c0]
cmp edx, dword [ebp - 0x40]
jge 0x401e16
mov eax, dword [ebp - 0x48]
mov dword [0x42b9c0], eax
push 0x118
call fcn.004103f0
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x401e36
mov ecx, dword [ebp - 0x50]
call fcn.0040b6c0
mov dword [ebp - 0x54], eax
jmp 0x401e3d
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov dword [0x42b9b8], edx
cmp dword [0x42b9b8], 0
jne 0x401e69
push str.cr:205
call fcn.004100f0
add esp, 4
xor eax, eax
jmp 0x401fe6
mov byte [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov word [ebp - 0x1f], ax
mov byte [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x1b], ecx
mov dword [ebp - 0x17], ecx
mov dword [ebp - 0x13], ecx
mov word [ebp - 0xf], cx
mov byte [ebp - 0xd], cl
mov dword [ebp - 0x44], 0x1f
mov dword [ebp - 4], 0
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x401ed2
push str.cr:206
call fcn.004100f0
add esp, 4
xor eax, eax
jmp 0x401fe6
push 0x1069
push 0x422700
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x1c]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x401f1b
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ebp + ecx - 0x1c]
add edx, 0x31
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x1c], dl
jmp 0x401ef8
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x3c]
push edx
call sub.MSVCR90.dll_strcat
add esp, 8
push 0
push 0
push 0
push 0
mov eax, dword [sym.imp.mfc90.dll_Ordinal_5798]
push eax
push 0xcf0000
lea ecx, [ebp - 0x3c]
push ecx
push 0
mov edx, dword [0x42b9b8]
mov eax, dword [edx]
mov ecx, dword [0x42b9b8]
mov edx, dword [eax + 0x144]
call edx
test eax, eax
jne 0x401f6f
push str.cr:207
call fcn.004100f0
add esp, 4
xor eax, eax
jmp 0x401fe6
cmp dword [0x42b99c], 0
jne 0x401fb5
cmp dword [0x42b9a0], 0
je 0x401fb3
mov ecx, dword [0x42b9b8]
call fcn.0040c710
test eax, eax
jne 0x401fb3
push 0x42270c
call fcn.0040fd80
add esp, 4
call fcn.00402120
push str.cr:208
call fcn.004100f0
add esp, 4
xor eax, eax
jmp 0x401fe6
jmp 0x401fe1
call fcn.00401820
test eax, eax
jne 0x401fe1
push 0x42271c
call fcn.0040fd80
add esp, 4
call fcn.00402120
push str.cr:209
call fcn.004100f0
add esp, 4
xor eax, eax
jmp 0x401fe6
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041fff8
mov esp, ebp
pop ebp
ret 8