Function at 0x645900
Capabilities:
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x300]
sub esp, 0x300
push 0xffffffffffffffff
push 0x7141a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x76e964]
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.006f4190
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], 0x571ab0
mov byte [ebp + 0x24], 0x64
call fcn.006f4190
add esp, 0x18
mov dword [ebp - 4], 0
lea edi, [esi + 0x1d0]
call fcn.005fc200
mov ecx, eax
call fcn.005fc500
mov dword [edi], eax
call fcn.006583c0
mov ecx, eax
call fcn.00659520
test al, al
je 0x6459d2
mov dword [edi], 0
push esi
mov byte [esi + 0x2a2], 1
mov dword [esi + 0x2bc], 0x73c1606
call fcn.00645bd0
lea eax, [ebp + 0x2f0]
mov dword [ebp + 0x2f8], 0
xorps xmm0, xmm0
push eax
movq qword [ebp + 0x2f0], xmm0
call fcn.0064ca80
add esp, 8
lea ecx, [ebp + 0x2f0]
mov byte [ebp - 4], 1
call fcn.005f9020
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 0x645a38
sub ecx, dword [ebp - 0x10]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0059a870
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push edi
call fcn.006840b0
mov edx, dword [ebp - 0x14]
add esp, 8
cmp edx, 0x10
jb 0x645a95
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x645a8b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x645bc9
push edx
push ecx
call fcn.006dd246
add esp, 8
lea ecx, [ebp + 0x2f0]
mov byte [ebp - 4], 0
call fcn.00593210
lea eax, [esi + 0x1f0]
push 0x80
push eax
call fcn.00684810
add esp, 8
test al, al
jne 0x645acc
mov eax, dword [ebx]
mov ecx, ebx
push 0x69
call dword [eax + 4]
xor esi, esi
jmp 0x645b93
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 0x645ae0
sub ecx, edx
jne 0x645af4
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 0x645af7
sub edi, ecx
mov eax, 0x80
sub eax, edi
push eax
lea eax, [esi + 0x134]
add eax, edi
push 0
push eax
call fcn.006f4190
mov eax, dword [ebp + 0x308]
lea edi, [ebp + 0x2c]
and eax, 0x13
mov ecx, 0xb0
or eax, 0x10000000
add esp, 0xc
cmp byte [ebx + 0x228], 0
mov dword [ebp + 0x28], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
je 0x645b5b
call fcn.00646d10
movzx ecx, word [ebx + 0x226]
mov dword [ebp + 0x200], ecx
mov byte [ebp + 0x2cf], al
jmp 0x645b70
call fcn.00646d10
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.0067bc10
test al, al
jne 0x645b8d
xor esi, esi
jmp 0x645b93
mov esi, dword [ebp + 0x2ec]
lea ecx, [ebp]
mov dword [ebp], 0x571ab0
call fcn.00674420
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.006dd760
lea esp, [ebp + 0x300]
pop ebp
ret 8
call fcn.0060e3b4
int3