Function at 0x4312c0
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43ddaa
push eax
mov eax, dword [0x45df7c]
mov dword fs:[0], esp
sub esp, 0x2e4
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x431a46
mov eax, dword [0x45df78]
cmp dword [eax - 8], ebx
je 0x431a46
cmp dword [esp + 0x304], ebx
je 0x4317bd
cmp dword [esp + 0x308], ebx
jle 0x4317bd
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x10c]
push 0xc7
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
mov ecx, 0x48
xor eax, eax
lea edi, [esp + 0x1d4]
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
push 0x32
push edx
mov ecx, 0x45df74
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x230]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString
lea edi, [esp + 0x10c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1fd]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, 0x441f58
mov eax, ecx
mov esi, edi
mov edi, edx
push 0xfa000
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x38], ebp
and ecx, 3
mov dword [esp + 0x3c], ebx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x40], ebx
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x3e800
xor eax, eax
mov dword [esp + 0x3c], edi
rep stosd dword es:[edi], eax
add esp, 4
mov dword [esp + 0x3c], 0xfa000
lea ecx, [esp + 0x34]
mov dword [esp + 0x2fc], ebx
push ecx
lea ecx, [esp + 0xb4]
call fcn.004307c0
mov esi, 0x441f54
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], 1
mov dword [esp + 0xb0], esi
call fcn.00431270
mov byte [esp + 0x2fc], 2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push 0x19000
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x6400
xor eax, eax
mov dword [esp + 0x20], edi
rep stosd dword es:[edi], eax
add esp, 4
mov dword [esp + 0x20], 0x19000
lea edx, [esp + 0x18]
lea ecx, [esp + 0x44]
push edx
call fcn.004307c0
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 4
mov dword [esp + 0x44], esi
call fcn.00431270
mov al, byte [esp + 0x30c]
mov byte [esp + 0x2fc], 5
cmp al, bl
mov eax, dword [esp + 0x80]
je 0x4314a4
cmp eax, ebx
je 0x4314ae
mov dword [eax], ebx
jmp 0x4314ae
cmp eax, ebx
je 0x4314ae
mov dword [eax], 4
mov ebp, dword [esp + 0x308]
xor ecx, ecx
shl ebp, 4
cmp ebp, ebx
mov dword [esp + 0x24], 0x441f58
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
jbe 0x4314f7
push ebp
call sub.MFC42.DLL_operatornew
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x2c], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov edx, dword [esp + 0x304]
mov esi, dword [esp + 0x308]
mov edi, ecx
mov byte [esp + 0x2fc], 6
mov dword [esp + 0x40], edi
mov ax, word [edx]
add edx, 2
and eax, 0xffff
mov dword [ecx], eax
mov dword [ecx + 4], 1
add ecx, 0x10
dec esi
jne 0x431513
lea eax, [esp + 0x10]
test eax, eax
je 0x43153b
cmp dword [esp + 0x10], ebx
jne 0x4315b7
lea ecx, [esp + 0x10]
push ecx
push ebp
push edi
lea ecx, [esp + 0x54]
call fcn.00430470
cmp eax, 1
je 0x431559
cmp eax, 2
je 0x431559
xor cl, cl
jmp 0x43155b
mov cl, 1
cmp eax, ebx
je 0x4315b7
cmp cl, bl
je 0x4315b7
cmp eax, 1
jne 0x4315a7
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x431580
lea ecx, [esp + 0x44]
call fcn.00431110
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x48]
push eax
call fcn.00430690
push ebp
push edi
lea ecx, [esp + 0x4c]
call fcn.00431190
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x4315c9
mov dword [esp + 0x10], eax
jmp 0x4315b7
lea edx, [esp + 0x10]
test edx, edx
je 0x4315c9
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
test eax, eax
je 0x4315c9
cmp dword [esp + 0x10], ebx
jne 0x43165b
lea ecx, [esp + 0x10]
push ecx
push 0x44cb70
lea ecx, [esp + 0x50]
call fcn.00430570
cmp eax, 1
je 0x4315ea
cmp eax, 2
je 0x4315ea
xor cl, cl
jmp 0x4315ec
mov cl, 1
cmp eax, ebx
je 0x43165b
cmp cl, bl
je 0x43165b
cmp eax, 1
jne 0x43164b
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x431611
lea ecx, [esp + 0x44]
call fcn.00431110
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x48]
push eax
call fcn.00430690
mov edi, 0x44cb70
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x44cb70
lea ecx, [esp + 0x4c]
call fcn.00431190
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x43166d
mov dword [esp + 0x10], eax
jmp 0x43165b
lea edx, [esp + 0x10]
test edx, edx
je 0x43166d
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
test eax, eax
je 0x43166d
cmp dword [esp + 0x10], ebx
jne 0x4316ff
lea ecx, [esp + 0x10]
push ecx
push 0x44cb6c
lea ecx, [esp + 0x50]
call fcn.00430570
cmp eax, 1
je 0x43168e
cmp eax, 2
je 0x43168e
xor cl, cl
jmp 0x431690
mov cl, 1
cmp eax, ebx
je 0x4316ff
cmp cl, bl
je 0x4316ff
cmp eax, 1
jne 0x4316ef
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x4316b5
lea ecx, [esp + 0x44]
call fcn.00431110
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x48]
push eax
call fcn.00430690
mov edi, 0x44cb6c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x44cb6c
lea ecx, [esp + 0x4c]
call fcn.00431190
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x4316ff
mov dword [esp + 0x10], eax
jmp 0x4316ff
lea edx, [esp + 0x10]
test edx, edx
je 0x4316ff
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1d4]
push eax
push 0x120
push ecx
lea ecx, [esp + 0x50]
call fcn.00430f90
cmp dword [esp + 0x10], ebx
je 0x4317c7
mov eax, dword [esp + 0x28]
mov esi, 0x441f58
cmp eax, ebx
mov dword [esp + 0x24], esi
je 0x431742
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x28], ebx
mov edi, 0x441f54
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 7
call fcn.00431ba0
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00430c00
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
cmp eax, ebx
je 0x431786
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xb0], edi
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], 8
call fcn.00431ba0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00430c00
lea ecx, [esp + 0x34]
call fcn.00430750
mov eax, 0xfffffffc
jmp 0x431a49
mov eax, dword [0x45df78]
lea edx, [esp + 0x33]
push edx
push eax
lea ecx, [esp + 0xa8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov eax, dword [0x45df7c]
lea ecx, [esp + 0xb0]
lea edx, [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0xa8]
push eax
push ecx
mov byte [esp + 0x30c], 9
call fcn.00433de0
add esp, 0x10
lea ecx, [esp + 0xa0]
mov esi, eax
mov byte [esp + 0x2fc], 6
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
cmp esi, ebx
je 0x43186d
lea ecx, [esp + 0x24]
call fcn.00430750
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00431240
lea ecx, [esp + 0x18]
call fcn.00430750
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00431240
lea ecx, [esp + 0x34]
call fcn.00430750
mov eax, esi
jmp 0x431a49
mov esi, dword [esp + 0x40]
lea edx, [esp + 0x10]
push edx
push ebp
push esi
lea ecx, [esp + 0xbc]
mov dword [esp + 0x1c], ebx
call fcn.00431a70
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0xb8]
call fcn.00430d20
cmp dword [esp + 0x10], ebx
je 0x4318fe
lea ecx, [esp + 0x14]
mov byte [esp + 0x2fc], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.00430750
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00431240
lea ecx, [esp + 0x18]
call fcn.00430750
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00431240
lea ecx, [esp + 0x34]
call fcn.00430750
mov eax, 0xfffffffb
jmp 0x431a49
mov ecx, dword [esp + 0x304]
mov edx, dword [esp + 0x308]
lea eax, [esi + 8]
cmp byte [eax], bl
jne 0x431918
mov word [ecx], 0xffff
add eax, 0x10
add ecx, 2
dec edx
jne 0x43190f
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.SUCCESS
push edx
call esi
add esp, 8
test eax, eax
jne 0x431991
lea ecx, [esp + 0x14]
mov byte [esp + 0x2fc], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.00430750
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00431240
lea ecx, [esp + 0x18]
call fcn.00430750
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00431240
lea ecx, [esp + 0x34]
call fcn.00430750
xor eax, eax
jmp 0x431a49
mov eax, dword [esp + 0x14]
push str.FAILURE
push eax
call esi
add esp, 8
mov byte [esp + 0x2fc], 6
test eax, eax
lea ecx, [esp + 0x14]
jne 0x4319fb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.00430750
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00431240
lea ecx, [esp + 0x18]
call fcn.00430750
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00431240
lea ecx, [esp + 0x34]
call fcn.00430750
mov eax, 0xfffffffe
jmp 0x431a49
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.00430750
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00431240
lea ecx, [esp + 0x18]
call fcn.00430750
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00431240
lea ecx, [esp + 0x34]
call fcn.00430750
mov eax, 0xfffffffa
jmp 0x431a49
or eax, 0xffffffff
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2f0
ret