Function at 0x519fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x94
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
mov ebx, dword [esp + 0xa4]
xorps xmm0, xmm0
movq qword [esp + 0x64], xmm0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0xffff0000
push ebp
mov ebp, dword [esp + 0xa4]
mov dword [esp + 0x10], ebp
push esi
mov esi, dword [esp + 0xa4]
push edi
movdqu xmmword [esp + 0x50], xmm0
movdqu xmmword [esp + 0x60], xmm0
cmp ebx, 0xc
jle 0x51a0ae
mov eax, dword [esi]
lea ecx, [esp + 0x44]
cmp eax, dword [ecx]
jne 0x51a0ae
mov eax, dword [esi + 4]
cmp eax, dword [ecx + 4]
jne 0x51a0ae
mov eax, dword [esi + 8]
cmp eax, dword [ecx + 8]
jne 0x51a0ae
mov edi, 1
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, 0x444144
test edi, edi
mov eax, 0x44eb8c
cmove eax, ecx
push eax
push 0x44eb94
push ebx
push ebx
push ebp
call fcn.0054a8ad
xor ecx, ecx
add esp, 0x18
cmp eax, ebx
cmovge ebp, ecx
mov eax, ebp
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054a992
add esp, 0x94
ret
push ebx
push esi
xor edi, edi
call fcn.00519dc0
add esp, 8
test eax, eax
jne 0x51a062
mov ebp, dword [sym.imp.WS2_32.dll_htons]
lea ebx, [esp + 0x78]
movdqu xmmword [esp + 0x78], xmm0
movdqu xmmword [esp + 0x88], xmm0
movq qword [esp + 0x98], xmm0
movzx eax, word [esi + edi*2]
push eax
call ebp
movzx eax, ax
push eax
push 0x44eb9c
push 5
push 5
push ebx
call fcn.0054a8ad
inc edi
add esp, 0x14
add ebx, 5
cmp edi, 8
jl 0x51a0e0
xor eax, eax
cmp word [esi + 0xe], ax
sete al
cmp word [esi + 0xc], 0
mov dword [esp + 0x14], eax
jne 0x51a11d
inc eax
jmp 0x51a11f
xor eax, eax
cmp word [esi + 0xa], 0
mov dword [esp + 0x10], eax
jne 0x51a12d
inc eax
jmp 0x51a12f
xor eax, eax
cmp word [esi + 8], 0
mov dword [esp + 0x20], eax
jne 0x51a13d
inc eax
jmp 0x51a13f
xor eax, eax
cmp word [esi + 6], 0
mov dword [esp + 0x1c], eax
jne 0x51a14d
inc eax
jmp 0x51a14f
xor eax, eax
cmp word [esi + 4], 0
mov ebp, eax
jne 0x51a15b
inc eax
jmp 0x51a15d
xor eax, eax
cmp word [esi + 2], 0
mov ebx, eax
jne 0x51a169
inc eax
jmp 0x51a16b
xor eax, eax
cmp word [esi], 0
mov edi, eax
jne 0x51a176
inc eax
jmp 0x51a178
xor eax, eax
or edx, 0xffffffff
mov dword [esp + 0x24], eax
xor ecx, ecx
test eax, eax
jle 0x51a189
xor edx, edx
mov ecx, eax
cmp edi, ecx
jle 0x51a194
mov edx, 1
mov ecx, edi
cmp ebx, ecx
jle 0x51a19f
mov edx, 2
mov ecx, ebx
cmp ebp, ecx
jle 0x51a1aa
mov edx, 3
mov ecx, ebp
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jle 0x51a1b9
mov edx, 4
mov ecx, eax
mov esi, dword [esp + 0x20]
cmp esi, ecx
jle 0x51a1c8
mov edx, 5
mov ecx, esi
cmp dword [esp + 0x10], ecx
jle 0x51a1d7
mov ecx, dword [esp + 0x10]
mov edx, 6
cmp dword [esp + 0x14], ecx
jle 0x51a1e4
mov edx, 7
jmp 0x51a1e8
test edx, edx
je 0x51a1f0
mov dword [esp + 0x24], 0
xor ecx, ecx
cmp edx, 1
cmovne edi, ecx
cmp edx, 2
mov dword [esp + 0x28], edi
cmovne ebx, ecx
cmp edx, 3
mov dword [esp + 0x2c], ebx
cmovne ebp, ecx
cmp edx, 4
mov dword [esp + 0x30], ebp
cmovne eax, ecx
mov dword [esp + 0x34], eax
xor eax, eax
cmp edx, 5
cmovne esi, eax
mov eax, dword [esp + 0x10]
cmp edx, 6
mov dword [esp + 0x38], esi
cmovne eax, ecx
cmp edx, 7
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
cmovne eax, ecx
mov dword [esp + 0x40], eax
xor eax, eax
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x24]
test ecx, ecx
je 0x51a263
test esi, esi
jne 0x51a258
mov byte [esp + eax + 0x50], 0x3a
inc eax
mov byte [esp + eax + 0x50], 0x3a
dec esi
inc eax
add esi, ecx
jmp 0x51a28c
lea ecx, [esp + 0x78]
add ecx, esi
mov dl, byte [ecx + esi*4]
lea ecx, [ecx + esi*4]
test dl, dl
je 0x51a281
mov byte [esp + eax + 0x50], dl
lea ecx, [ecx + 1]
mov dl, byte [ecx]
inc eax
test dl, dl
jne 0x51a273
cmp esi, 7
je 0x51a28c
mov byte [esp + eax + 0x50], 0x3a
inc eax
inc esi
cmp esi, 8
jl 0x51a246
inc eax
cmp eax, dword [esp + 0xb0]
jle 0x51a2a3
xor eax, eax
jmp 0x51a095
mov esi, dword [esp + 0x18]
push eax
lea eax, [esp + 0x54]
push eax
push esi
call fcn.0054adf0
add esp, 0xc
mov eax, esi
jmp 0x51a095