Function at 0x431e00
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43e8ba
push eax
mov eax, dword [0x45b63c]
mov dword fs:[0], esp
sub esp, 0x2e4
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x432586
mov eax, dword [0x45b638]
cmp dword [eax - 8], ebx
je 0x432586
cmp dword [esp + 0x304], ebx
je 0x4322fd
cmp dword [esp + 0x308], ebx
jle 0x4322fd
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, 0x45b634
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, 0x440f38
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.00431300
mov esi, 0x440f34
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], 1
mov dword [esp + 0xb0], esi
call fcn.00431db0
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.00431300
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 4
mov dword [esp + 0x44], esi
call fcn.00431db0
mov al, byte [esp + 0x30c]
mov byte [esp + 0x2fc], 5
cmp al, bl
mov eax, dword [esp + 0x80]
je 0x431fe4
cmp eax, ebx
je 0x431fee
mov dword [eax], ebx
jmp 0x431fee
cmp eax, ebx
je 0x431fee
mov dword [eax], 4
mov ebp, dword [esp + 0x308]
xor ecx, ecx
shl ebp, 4
cmp ebp, ebx
mov dword [esp + 0x24], 0x440f38
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
jbe 0x432037
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 0x432053
lea eax, [esp + 0x10]
test eax, eax
je 0x43207b
cmp dword [esp + 0x10], ebx
jne 0x4320f7
lea ecx, [esp + 0x10]
push ecx
push ebp
push edi
lea ecx, [esp + 0x54]
call fcn.00430fb0
cmp eax, 1
je 0x432099
cmp eax, 2
je 0x432099
xor cl, cl
jmp 0x43209b
mov cl, 1
cmp eax, ebx
je 0x4320f7
cmp cl, bl
je 0x4320f7
cmp eax, 1
jne 0x4320e7
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x4320c0
lea ecx, [esp + 0x44]
call fcn.00431c50
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x48]
push eax
call fcn.004311d0
push ebp
push edi
lea ecx, [esp + 0x4c]
call fcn.00431cd0
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x432109
mov dword [esp + 0x10], eax
jmp 0x4320f7
lea edx, [esp + 0x10]
test edx, edx
je 0x432109
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
test eax, eax
je 0x432109
cmp dword [esp + 0x10], ebx
jne 0x43219b
lea ecx, [esp + 0x10]
push ecx
push 0x44c410
lea ecx, [esp + 0x50]
call fcn.004310b0
cmp eax, 1
je 0x43212a
cmp eax, 2
je 0x43212a
xor cl, cl
jmp 0x43212c
mov cl, 1
cmp eax, ebx
je 0x43219b
cmp cl, bl
je 0x43219b
cmp eax, 1
jne 0x43218b
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x432151
lea ecx, [esp + 0x44]
call fcn.00431c50
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x48]
push eax
call fcn.004311d0
mov edi, 0x44c410
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x44c410
lea ecx, [esp + 0x4c]
call fcn.00431cd0
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x4321ad
mov dword [esp + 0x10], eax
jmp 0x43219b
lea edx, [esp + 0x10]
test edx, edx
je 0x4321ad
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
test eax, eax
je 0x4321ad
cmp dword [esp + 0x10], ebx
jne 0x43223f
lea ecx, [esp + 0x10]
push ecx
push 0x44c40c
lea ecx, [esp + 0x50]
call fcn.004310b0
cmp eax, 1
je 0x4321ce
cmp eax, 2
je 0x4321ce
xor cl, cl
jmp 0x4321d0
mov cl, 1
cmp eax, ebx
je 0x43223f
cmp cl, bl
je 0x43223f
cmp eax, 1
jne 0x43222f
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x4321f5
lea ecx, [esp + 0x44]
call fcn.00431c50
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x48]
push eax
call fcn.004311d0
mov edi, 0x44c40c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x44c40c
lea ecx, [esp + 0x4c]
call fcn.00431cd0
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x43223f
mov dword [esp + 0x10], eax
jmp 0x43223f
lea edx, [esp + 0x10]
test edx, edx
je 0x43223f
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.00431ad0
cmp dword [esp + 0x10], ebx
je 0x432307
mov eax, dword [esp + 0x28]
mov esi, 0x440f38
cmp eax, ebx
mov dword [esp + 0x24], esi
je 0x432282
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x28], ebx
mov edi, 0x440f34
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 7
call fcn.004326e0
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00431740
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
cmp eax, ebx
je 0x4322c6
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.004326e0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00431740
lea ecx, [esp + 0x34]
call fcn.00431290
mov eax, 0xfffffffc
jmp 0x432589
mov eax, dword [0x45b638]
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 [0x45b63c]
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.00434910
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 0x4323ad
lea ecx, [esp + 0x24]
call fcn.00431290
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00431d80
lea ecx, [esp + 0x18]
call fcn.00431290
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00431d80
lea ecx, [esp + 0x34]
call fcn.00431290
mov eax, esi
jmp 0x432589
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.004325b0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0xb8]
call fcn.00431860
cmp dword [esp + 0x10], ebx
je 0x43243e
lea ecx, [esp + 0x14]
mov byte [esp + 0x2fc], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.00431290
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00431d80
lea ecx, [esp + 0x18]
call fcn.00431290
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00431d80
lea ecx, [esp + 0x34]
call fcn.00431290
mov eax, 0xfffffffb
jmp 0x432589
mov ecx, dword [esp + 0x304]
mov edx, dword [esp + 0x308]
lea eax, [esi + 8]
cmp byte [eax], bl
jne 0x432458
mov word [ecx], 0xffff
add eax, 0x10
add ecx, 2
dec edx
jne 0x43244f
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 0x4324d1
lea ecx, [esp + 0x14]
mov byte [esp + 0x2fc], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.00431290
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00431d80
lea ecx, [esp + 0x18]
call fcn.00431290
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00431d80
lea ecx, [esp + 0x34]
call fcn.00431290
xor eax, eax
jmp 0x432589
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 0x43253b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.00431290
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00431d80
lea ecx, [esp + 0x18]
call fcn.00431290
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00431d80
lea ecx, [esp + 0x34]
call fcn.00431290
mov eax, 0xfffffffe
jmp 0x432589
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.00431290
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00431d80
lea ecx, [esp + 0x18]
call fcn.00431290
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00431d80
lea ecx, [esp + 0x34]
call fcn.00431290
mov eax, 0xfffffffa
jmp 0x432589
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