Function at 0x50b380
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568586
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x5d21e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, 0xf
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], edi
mov byte [ebp - 0x128], 0
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 0
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x430], eax
test eax, eax
je 0x50b552
push 0
lea ecx, [ebp - 0x190]
call fcn.00502d30
mov edi, eax
push ecx
mov esi, esp
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push str.wsaStartupFailed
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505810
sub esp, 0x10
mov edi, eax
mov ecx, esp
mov dword [ebp - 0x42c], esp
push dword [ebp - 0x430]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_int_]
push ecx
mov esi, esp
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push str.errorCode
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00504e80
push 4
mov ecx, eax
call fcn.00504e60
push ecx
mov esi, esp
mov edi, eax
push 0xffffffffffffffff
push str.SystemInfoWin
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505760
push 0x284
mov ecx, eax
call fcn.00504e70
sub esp, 0x68
mov edi, eax
mov dword [ebp - 0x42c], esp
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x434], esp
push str.Amazon::SystemInfo::getHostname
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
push ecx
mov esi, esp
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push 0x56e5f8
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00504e80
mov ecx, dword [ebp - 0x42c]
push eax
call fcn.00425d30
lea ecx, [ebp - 0x298]
call fcn.00425bf0
lea ecx, [ebp - 0x298]
call fcn.005066c0
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 0
call fcn.00502f90
mov eax, dword [ebp - 0x430]
lea edx, [eax + str.getHostname_error:]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b530
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x128]
call fcn.00423620
mov edi, dword [ebp - 0x114]
mov esi, dword [ebp - 0x43c]
push 0x100
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x50b5d5
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50b580
sub eax, edx
mov ecx, esi
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00423620
cmp edi, 0x10
jb 0x50b5ce
mov ecx, dword [ebp - 0x128]
lea edx, [edi + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x50b5c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50b769
push edx
push ecx
call fcn.0053277c
add esp, 8
mov eax, esi
jmp 0x50b74e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
lea ecx, [ebp - 0x190]
mov dword [ebp - 0x430], eax
call fcn.00502d30
mov edi, eax
push ecx
mov esi, esp
mov byte [ebp - 4], 4
push 0xffffffffffffffff
push str.getHostNameFailed
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505810
sub esp, 0x10
mov edi, eax
mov ecx, esp
mov dword [ebp - 0x438], esp
push dword [ebp - 0x430]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_int_]
push ecx
mov esi, esp
mov byte [ebp - 4], 5
push 0xffffffffffffffff
push str.errorCode
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00504e80
push 4
mov ecx, eax
call fcn.00504e60
push ecx
mov esi, esp
mov edi, eax
push 0xffffffffffffffff
push str.SystemInfoWin
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
call fcn.00505760
push 0x292
mov ecx, eax
call fcn.00504e70
sub esp, 0x68
mov edi, eax
mov dword [ebp - 0x42c], esp
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x438], esp
push str.Amazon::SystemInfo::getHostname
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::constructor_char_const__]
push ecx
mov esi, esp
mov byte [ebp - 4], 6
push 0xffffffffffffffff
push 0x56e5f8
call dword [sym.imp.QtCore4.dll_private:_static_struct_QString::Data____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00504e80
mov ecx, dword [ebp - 0x42c]
push eax
call fcn.00425d30
lea ecx, [ebp - 0x298]
call fcn.00425bf0
lea ecx, [ebp - 0x298]
call fcn.005066c0
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 0
call fcn.00502f90
mov eax, dword [ebp - 0x430]
lea edx, [eax + str.getHostname_error:]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b707
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x128]
call fcn.00423620
mov eax, dword [ebp - 0x43c]
movups xmm0, xmmword [ebp - 0x128]
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x118]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005329db
mov esp, ebp
pop ebp
ret
call fcn.005379bf
int3