Function at 0x432700
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43e929
push eax
mov eax, dword [0x45b63c]
mov dword fs:[0], esp
sub esp, 0x2d8
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x432b00
mov eax, dword [0x45b638]
cmp dword [eax - 8], ebx
je 0x432b00
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x220]
push 0xc7
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x224]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
mov ecx, 0x48
xor eax, eax
lea edi, [esp + 0x100]
lea edx, [esp + 0x34]
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 + 0x15c]
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 + 0x34]
call sub.MFC42.DLL_CString::CString
lea edi, [esp + 0x220]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x129]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xfa000
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x30], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x34], ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x440f38
mov dword [esp + 0x2c], esi
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x3e800
xor eax, eax
mov dword [esp + 0x30], edi
rep stosd dword es:[edi], eax
add esp, 4
mov dword [esp + 0x30], 0xfa000
lea ecx, [esp + 0x28]
mov dword [esp + 0x2f0], ebx
push ecx
lea ecx, [esp + 0xa8]
call fcn.00431300
mov ebp, 0x440f34
lea ecx, [esp + 0xa4]
mov byte [esp + 0x2f0], 1
mov dword [esp + 0xa4], ebp
mov byte [esp + 0xfc], 1
mov byte [esp + 0xfd], 1
call fcn.00432b20
mov byte [esp + 0x2f0], 2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], esi
push 0x19000
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x6400
xor eax, eax
mov dword [esp + 0x24], edi
rep stosd dword es:[edi], eax
add esp, 4
mov dword [esp + 0x24], 0x19000
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x48]
push edx
call fcn.00431300
lea ecx, [esp + 0x48]
mov byte [esp + 0x2f0], 4
mov dword [esp + 0x48], ebp
call fcn.00431db0
mov eax, dword [esp + 0x84]
mov byte [esp + 0x2f0], 5
cmp eax, ebx
je 0x4328d1
mov dword [eax], 3
lea eax, [esp + 0x10]
test eax, eax
je 0x4328e3
cmp dword [esp + 0x10], ebx
jne 0x432975
lea ecx, [esp + 0x10]
lea edx, [esp + 0x100]
push ecx
push 0x120
push edx
lea ecx, [esp + 0x58]
call fcn.00430fb0
cmp eax, 1
je 0x43290c
cmp eax, 2
je 0x43290c
xor cl, cl
jmp 0x43290e
mov cl, 1
cmp eax, ebx
je 0x432975
cmp cl, bl
je 0x432975
cmp eax, 1
jne 0x432965
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x60]
call dword [eax + 0x28]
cmp eax, ebx
ja 0x432933
lea ecx, [esp + 0x48]
call fcn.00431c50
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x50]
call fcn.004311d0
lea edx, [esp + 0x100]
push 0x120
push edx
lea ecx, [esp + 0x50]
call fcn.00431cd0
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x432975
mov dword [esp + 0x10], eax
jmp 0x432975
lea edx, [esp + 0x10]
test edx, edx
je 0x432975
mov dword [esp + 0x10], 0xffffffff
mov al, byte [esp + 0x1b]
mov esi, dword [0x45b638]
push ebx
lea ecx, [esp + 0x3c]
or ebp, 0xffffffff
mov byte [esp + 0x3c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [0x45b63c]
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x48]
push ecx
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x300], 6
call fcn.00434910
add esp, 0x10
lea ecx, [esp + 0x38]
mov esi, eax
mov byte [esp + 0x2f0], 5
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 0x432a61
mov edi, 0x440f34
lea ecx, [esp + 0x48]
mov byte [esp + 0x2f0], 3
mov dword [esp + 0x48], edi
call fcn.004326e0
lea ecx, [esp + 0x48]
call fcn.00431740
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 0x440f38
cmp eax, ebx
je 0x432a2b
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0xa4]
mov byte [esp + 0x2f0], bl
mov dword [esp + 0xa4], edi
call fcn.004326e0
lea ecx, [esp + 0xa4]
call fcn.00431740
lea ecx, [esp + 0x28]
call fcn.00431290
mov eax, esi
jmp 0x432b03
lea edx, [esp + 0x14]
push ebx
push edx
lea ecx, [esp + 0xac]
call fcn.00431860
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.SUCCESS
push eax
mov byte [esp + 0x2f8], 7
call esi
add esp, 8
test eax, eax
jne 0x432a98
xor ebp, ebp
jmp 0x432ab0
mov ecx, dword [esp + 0x14]
push str.FAILURE
push ecx
call esi
add esp, 8
test eax, eax
jne 0x432ab0
mov ebp, 0xfffffffe
call fcn.00434e90
lea ecx, [esp + 0x14]
mov byte [esp + 0x2f0], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x2f0], 3
call fcn.00431d80
lea ecx, [esp + 0x1c]
call fcn.00431290
lea ecx, [esp + 0xa4]
mov byte [esp + 0x2f0], bl
call fcn.00431d80
lea ecx, [esp + 0x28]
call fcn.00431290
mov eax, ebp
jmp 0x432b03
or eax, 0xffffffff
mov ecx, dword [esp + 0x2e8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2e4
ret