Function at 0x426e80
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x433a2a
push eax
mov eax, dword [0x44f374]
mov dword fs:[0], esp
sub esp, 0x2e4
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x427606
mov eax, dword [0x44f370]
cmp dword [eax - 8], ebx
je 0x427606
cmp dword [esp + 0x304], ebx
je 0x42737d
cmp dword [esp + 0x308], ebx
jle 0x42737d
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, 0x44f36c
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, 0x436de0
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.00426380
mov esi, 0x436ddc
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], 1
mov dword [esp + 0xb0], esi
call fcn.00426e30
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.00426380
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 4
mov dword [esp + 0x44], esi
call fcn.00426e30
mov al, byte [esp + 0x30c]
mov byte [esp + 0x2fc], 5
cmp al, bl
mov eax, dword [esp + 0x80]
je 0x427064
cmp eax, ebx
je 0x42706e
mov dword [eax], ebx
jmp 0x42706e
cmp eax, ebx
je 0x42706e
mov dword [eax], 4
mov ebp, dword [esp + 0x308]
xor ecx, ecx
shl ebp, 4
cmp ebp, ebx
mov dword [esp + 0x24], 0x436de0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
jbe 0x4270b7
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 0x4270d3
lea eax, [esp + 0x10]
test eax, eax
je 0x4270fb
cmp dword [esp + 0x10], ebx
jne 0x427177
lea ecx, [esp + 0x10]
push ecx
push ebp
push edi
lea ecx, [esp + 0x54]
call fcn.00426030
cmp eax, 1
je 0x427119
cmp eax, 2
je 0x427119
xor cl, cl
jmp 0x42711b
mov cl, 1
cmp eax, ebx
je 0x427177
cmp cl, bl
je 0x427177
cmp eax, 1
jne 0x427167
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x427140
lea ecx, [esp + 0x44]
call fcn.00426cd0
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x48]
push eax
call fcn.00426250
push ebp
push edi
lea ecx, [esp + 0x4c]
call fcn.00426d50
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x427189
mov dword [esp + 0x10], eax
jmp 0x427177
lea edx, [esp + 0x10]
test edx, edx
je 0x427189
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
test eax, eax
je 0x427189
cmp dword [esp + 0x10], ebx
jne 0x42721b
lea ecx, [esp + 0x10]
push ecx
push 0x440340
lea ecx, [esp + 0x50]
call fcn.00426130
cmp eax, 1
je 0x4271aa
cmp eax, 2
je 0x4271aa
xor cl, cl
jmp 0x4271ac
mov cl, 1
cmp eax, ebx
je 0x42721b
cmp cl, bl
je 0x42721b
cmp eax, 1
jne 0x42720b
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x4271d1
lea ecx, [esp + 0x44]
call fcn.00426cd0
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x48]
push eax
call fcn.00426250
mov edi, 0x440340
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x440340
lea ecx, [esp + 0x4c]
call fcn.00426d50
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x42722d
mov dword [esp + 0x10], eax
jmp 0x42721b
lea edx, [esp + 0x10]
test edx, edx
je 0x42722d
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
test eax, eax
je 0x42722d
cmp dword [esp + 0x10], ebx
jne 0x4272bf
lea ecx, [esp + 0x10]
push ecx
push 0x44033c
lea ecx, [esp + 0x50]
call fcn.00426130
cmp eax, 1
je 0x42724e
cmp eax, 2
je 0x42724e
xor cl, cl
jmp 0x427250
mov cl, 1
cmp eax, ebx
je 0x4272bf
cmp cl, bl
je 0x4272bf
cmp eax, 1
jne 0x4272af
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [edx + 0x28]
cmp eax, ebx
ja 0x427275
lea ecx, [esp + 0x44]
call fcn.00426cd0
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x48]
push eax
call fcn.00426250
mov edi, 0x44033c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x44033c
lea ecx, [esp + 0x4c]
call fcn.00426d50
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x4272bf
mov dword [esp + 0x10], eax
jmp 0x4272bf
lea edx, [esp + 0x10]
test edx, edx
je 0x4272bf
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.00426b50
cmp dword [esp + 0x10], ebx
je 0x427387
mov eax, dword [esp + 0x28]
mov esi, 0x436de0
cmp eax, ebx
mov dword [esp + 0x24], esi
je 0x427302
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x28], ebx
mov edi, 0x436ddc
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 7
call fcn.00427760
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.004267c0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
cmp eax, ebx
je 0x427346
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.00427760
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.004267c0
lea ecx, [esp + 0x34]
call fcn.00426310
mov eax, 0xfffffffc
jmp 0x427609
mov eax, dword [0x44f370]
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 [0x44f374]
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.00429990
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 0x42742d
lea ecx, [esp + 0x24]
call fcn.00426310
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00426e00
lea ecx, [esp + 0x18]
call fcn.00426310
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00426e00
lea ecx, [esp + 0x34]
call fcn.00426310
mov eax, esi
jmp 0x427609
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.00427630
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0xb8]
call fcn.004268e0
cmp dword [esp + 0x10], ebx
je 0x4274be
lea ecx, [esp + 0x14]
mov byte [esp + 0x2fc], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.00426310
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00426e00
lea ecx, [esp + 0x18]
call fcn.00426310
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00426e00
lea ecx, [esp + 0x34]
call fcn.00426310
mov eax, 0xfffffffb
jmp 0x427609
mov ecx, dword [esp + 0x304]
mov edx, dword [esp + 0x308]
lea eax, [esi + 8]
cmp byte [eax], bl
jne 0x4274d8
mov word [ecx], 0xffff
add eax, 0x10
add ecx, 2
dec edx
jne 0x4274cf
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 0x427551
lea ecx, [esp + 0x14]
mov byte [esp + 0x2fc], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.00426310
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00426e00
lea ecx, [esp + 0x18]
call fcn.00426310
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00426e00
lea ecx, [esp + 0x34]
call fcn.00426310
xor eax, eax
jmp 0x427609
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 0x4275bb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.00426310
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00426e00
lea ecx, [esp + 0x18]
call fcn.00426310
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00426e00
lea ecx, [esp + 0x34]
call fcn.00426310
mov eax, 0xfffffffe
jmp 0x427609
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.00426310
lea ecx, [esp + 0x44]
mov byte [esp + 0x2fc], 3
call fcn.00426e00
lea ecx, [esp + 0x18]
call fcn.00426310
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2fc], bl
call fcn.00426e00
lea ecx, [esp + 0x34]
call fcn.00426310
mov eax, 0xfffffffa
jmp 0x427609
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