Function at 0x512250
Capabilities:
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x300]
sub esp, 0x300
push 0xffffffffffffffff
push 0x5dfbb0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp + 0x2fc], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0x30c]
lea eax, [ebp]
push 0x2f0
push 0
push eax
call fcn.005be800
push 0x2c8
lea eax, [ebp + 0x28]
mov dword [ebp + 4], 0xffffffff
push 0
push eax
mov dword [ebp + 8], 0
mov byte [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0xffffffff
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0x20], 0
mov dword [ebp], 0x430794
mov byte [ebp + 0x24], 0x64
call fcn.005be800
add esp, 0x18
mov dword [ebp - 4], 0
lea edi, [esi + 0x1d0]
call fcn.004c5ed0
mov ecx, eax
call fcn.004c61a0
mov dword [edi], eax
call fcn.00524be0
mov ecx, eax
call fcn.00525ca0
test al, al
je 0x512322
mov dword [edi], 0
push esi
mov byte [esi + 0x2a2], 1
mov dword [esi + 0x2bc], 0x7321497
call fcn.00512520
lea eax, [ebp + 0x2f0]
mov dword [ebp + 0x2f8], 0
xorps xmm0, xmm0
push eax
movq qword [ebp + 0x2f0], xmm0
call fcn.005194d0
add esp, 8
lea ecx, [ebp + 0x2f0]
mov byte [ebp - 4], 1
call fcn.004c2d50
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x10], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x512388
sub ecx, dword [ebp - 0x10]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00459b10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push edi
call fcn.0054ffd0
mov edx, dword [ebp - 0x14]
add esp, 8
cmp edx, 0x10
jb 0x5123e5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x5123db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x512519
push edx
push ecx
call fcn.005bc4f7
add esp, 8
lea ecx, [ebp + 0x2f0]
mov byte [ebp - 4], 0
call fcn.00452500
lea eax, [esi + 0x1f0]
push 0x80
push eax
call fcn.00550730
add esp, 8
test al, al
jne 0x51241c
mov eax, dword [ebx]
mov ecx, ebx
push 0x69
call dword [eax + 4]
xor esi, esi
jmp 0x5124e3
lea edi, [esi + 0x134]
mov byte [esi + 0x1b3], 0
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x512430
sub ecx, edx
jne 0x512444
push 0x7f
push edi
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x512447
sub edi, ecx
mov eax, 0x80
sub eax, edi
push eax
lea eax, [esi + 0x134]
add eax, edi
push 0
push eax
call fcn.005be800
mov eax, dword [ebp + 0x308]
lea edi, [ebp + 0x2c]
and eax, 0x13
mov ecx, 0xb0
or eax, 0x10000000
add esp, 0xc
cmp byte [ebx + 0x224], 0
mov dword [ebp + 0x28], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
je 0x5124ab
call fcn.00513660
movzx ecx, word [ebx + 0x222]
mov dword [ebp + 0x200], ecx
mov byte [ebp + 0x2cf], al
jmp 0x5124c0
call fcn.00513660
movzx eax, al
mov dword [ebp + 0x200], eax
mov byte [ebp + 0x2cf], 0
push 1
push 8
push 0x2c8
lea eax, [ebp]
push eax
lea ecx, [ebx + 0x18]
call fcn.00547b40
test al, al
jne 0x5124dd
xor esi, esi
jmp 0x5124e3
mov esi, dword [ebp + 0x2ec]
lea ecx, [ebp]
mov dword [ebp], 0x430794
call fcn.00540530
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2fc]
xor ecx, ebp
call fcn.005bca10
lea esp, [ebp + 0x300]
pop ebp
ret 8
call fcn.004d7f94
int3