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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1c0
movzx eax, word [ebp + 8]
lea edi, [esp + 0x68]
mov esi, ecx
mov dword [esp + 0x1c], edx
mov ecx, edi
mov word [esp + 0x2c], ax
call fcn.004bd20f
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
lea eax, [esi + 0x10]
mov dword [esp + 0x20], eax
push edi
push dword [esi + 0x1c]
push dword [esi + 0x18]
call fcn.005062b7
add esp, 0xc
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x18], esi
mov esi, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 0
shr esi, 0x19
movd xmm0, esi
lea esi, [esp + 0x108]
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
mov dword [esp + 0xc], edi
and edi, eax
mov dword [esp + 0x10], ecx
pshufd xmm1, xmm0, 0
movdqa xmmword [esp + 0x40], xmm1
movdqu xmm0, xmmword [ecx + edi]
movdqa xmmword [esp + 0x30], xmm0
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov word [esp + 0x108], ax
mov ecx, esi
call fcn.0040135d
test eax, eax
je 0x506730
add edx, edi
mov eax, dword [esp + 0x10]
and edx, dword [esp + 0xc]
neg edx
imul ebx, edx, 0x118
lea edx, [esp + 0x68]
lea ecx, [eax + ebx - 0x118]
call fcn.0048b968
test al, al
je 0x5066fd
jmp 0x50676c
movdqa xmm1, xmmword [esp + 0x30]
pcmpeqd xmm0, xmm0
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
test eax, eax
jne 0x50691b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
movdqa xmm1, xmmword [esp + 0x40]
lea edi, [edi + eax + 0x10]
add eax, 0x10
and edi, dword [esp + 0xc]
mov dword [esp + 0x14], eax
jmp 0x5066e2
lea eax, [esp + 0x74]
mov ecx, dword [eax - 4]
mov edx, dword [eax - 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax - 8]
mov dword [esp + 0x30], ecx
push 0xe
pop ecx
lea edi, [esp + 0x108]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [eax - 0xc], edx
mov ecx, dword [esp + 0xc]
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax - 8], ecx
mov eax, dword [esp + 0x10]
add eax, ebx
mov ebx, eax
lea eax, [esp + 0x74]
push 0xe
pop ecx
mov edi, eax
lea esi, [esp + 0x108]
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x38], ebx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x3c], ecx
lea ecx, [esp + 0x68]
call fcn.0050609d
movzx eax, word [ebp + 8]
cmp ax, 1
je 0x50680f
movzx eax, ax
test eax, eax
jne 0x506889
mov eax, ebx
add ebx, 0xffffff30
cmp dword [eax - 0xc8], 0x3b9aca00
jne 0x506861
mov edx, dword [esp + 0x1c]
lea esi, [esp + 0x170]
mov ecx, esi
call fcn.004bd20f
and word [esi + 0x48], 0
jmp 0x506835
mov eax, ebx
add ebx, 0xffffff98
cmp dword [eax - 0x60], 0x3b9aca00
jne 0x506861
mov edx, dword [esp + 0x1c]
lea esi, [esp + 0x170]
mov ecx, esi
call fcn.004bd20f
mov word [esi + 0x48], 1
and word [esi + 0x44], 0
call fcn.00506d81
lea ecx, [esp + 0x68]
mov edx, esi
push 0
push eax
call fcn.005060e9
pop eax
pop ecx
mov ecx, ebx
call fcn.00506558
push 0x1a
pop ecx
mov edi, ebx
lea esi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
lea esi, [esp + 0x108]
mov edx, ebx
mov ecx, esi
push eax
call fcn.00506d94
pop eax
mov ecx, ebx
call fcn.00506558
push 0x1a
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x506a79
mov eax, dword [0x7f50bc]
cmp eax, 2
jb 0x506a71
mov esi, dword [0x7f2988]
lea edi, [esp + 0x5c]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov dword [edi], 2
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
call fcn.00513e14
mov ebx, eax
push edi
mov edi, edx
push eax
call dword [edx + 0xc]
add esp, 8
test al, al
je 0x506a71
mov eax, dword [esp + 0x64]
movq xmm0, qword [esp + 0x5c]
mov ecx, dword [0x7f2988]
mov dword [esp + 0x10], edi
mov dword [esp + 0x58], eax
movq qword [esp + 0x50], xmm0
lea eax, [ecx + 0x1c]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0xc], eax
test edx, edx
je 0x5069be
mov eax, dword [ecx + 0x1c]
mov edi, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ecx
and dword [esp + 0x78], 0
jmp 0x5069c0
mov ebx, dword [esp + 0x18]
cmp dword [ebx + 8], 0
je 0x506a8b
lea esi, [esp + 0x68]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x40], eax
push 0xe
pop ecx
lea edi, [esp + 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push dword [esp + 0x24]
push dword [esp + 0x2c]
call fcn.004d110d
pop ecx
pop ecx
and dl, 1
neg eax
movzx ecx, dl
mov edx, dword [ebx]
sub dword [ebx + 8], ecx
imul ebx, eax, 0x118
lea eax, [edx + ebx - 0x118]
push 0xe
pop ecx
lea esi, [esp + 0x108]
mov edi, eax
add ebx, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x3c], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x40], ecx
mov ecx, 0x3b9aca00
mov dword [eax + 0x50], ecx
mov dword [eax + 0xb8], ecx
mov ecx, dword [esp + 0x18]
inc dword [ecx + 0xc]
jmp 0x5067cd
xor eax, eax
lea edi, [esp + 0x68]
lea ecx, [esp + 0xdc]
mov dword [edi], eax
mov edx, edi
push 0x73dd24
call fcn.0052f9f9
pop eax
lea ecx, [esp + 0x2c]
lea eax, [esp + 0xd4]
mov dword [eax], ecx
push 2
pop ecx
mov dword [edi], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0x10], 0x20
and dword [edi + 0x14], 0
xor edx, edx
lea ecx, [esp + 0x170]
mov dword [edi + 0x18], 4
mov byte [edi + 0x1c], 3
mov dword [eax + 4], 0x4c2560
inc edx
mov dword [ecx], str.unsupported_IP_type_from_Hosts_file:
mov dword [ecx + 4], edx
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edx
mov dword [ecx + 8], eax
lea eax, [esp + 0xfc]
lea edi, [esp + 0xdc]
mov dword [ecx + 0xc], edx
mov dword [eax], edi
lea edi, [esp + 0xf0]
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x737ff8
mov ecx, esi
mov dword [edi], eax
mov eax, dword [esp + 0xc]
mov dword [edi + 4], edx
mov edx, ebx
mov dword [edi + 8], eax
lea eax, [esp + 0x50]
push edi
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 0x10]
call fcn.005de194
add esp, 0xc
mov ecx, dword [ebp + 0xc]
call fcn.00503173
push dword [esp + 0x1c]
call fcn.004bcb24
pop eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0x20]
mov ecx, ebx
call fcn.0062f11f
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
jmp 0x506929