Function at 0x50fce0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x20]
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
movzx eax, word [ecx + 2]
and eax, 1
mov dword [0x584cfc], ebx
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + 0x11]
push esi
imul edx, eax, 0x3e8
movzx eax, byte [ecx + 0x10]
push edi
push dword [ecx + 0x14]
mov dword [esp + 0x28], ebp
xor edi, edi
add edx, eax
mov dword [esp + 0x18], ebx
push ecx
mov dword [esp + 0x30], edx
call fcn.00511a60
mov esi, eax
test esi, esi
je 0x50fd71
push dword [esp + 0x18]
push 0x81
push esi
call fcn.005118d0
mov edi, eax
test edi, edi
je 0x51005d
push edi
call fcn.0050cec0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x51005f
push dword [esp + 0x18]
push esi
push edi
mov esi, eax
push esi
call fcn.00511880
mov eax, esi
mov dword [esp + 0x20], esi
jmp 0x50fd7a
mov eax, 0x41f174
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x30]
movzx ecx, word [esi + 0x12]
mov dword [esp + 0x1c], ecx
cmp ecx, 0xfffe
jne 0x50fdcc
cmp byte [eax], bl
jne 0x50fda5
mov dword [0x584cfc], 4
mov eax, dword [esp + 0x14]
jmp 0x51005f
push eax
push 8
call fcn.0050d410
test eax, eax
jne 0x50fdc4
mov eax, dword [esp + 0x14]
mov dword [0x584cfc], 0x29
jmp 0x51005f
dec eax
movzx eax, ax
mov dword [esp + 0x1c], eax
call fcn.00510090
cmp dword [0x58dc04], ebx
jne 0x50fdec
mov eax, dword [esp + 0x14]
mov dword [0x584cfc], 0x60
jmp 0x51005f
push edi
push dword [esp + 0x24]
push dword [esp + 0x3c]
push esi
call fcn.0050f6c0
mov ebx, eax
test ebx, ebx
je 0x50fd9c
call fcn.005106a0
push dword [esi + 0x18]
mov byte [esp + 0x17], al
push esi
call fcn.00511a60
mov ebp, eax
test ebp, ebp
je 0x50feca
cmp byte [ebp], 0
je 0x50feca
push dword [esp + 0x18]
push 0x200
push ebp
call fcn.005118d0
mov edi, eax
test edi, edi
je 0x50fe88
push edi
call fcn.0050cec0
mov esi, eax
add esp, 4
test esi, esi
je 0x50fe88
push dword [0x584d20]
push ebp
push edi
push esi
call fcn.00511880
push esi
call fcn.005554b4
cmp eax, 0xffffffff
je 0x50fe69
mov dword [ebx + 0x54], eax
jmp 0x50fea9
push esi
call fcn.005554c6
push esi
mov edi, eax
call fcn.00534ada
add esp, 4
test edi, edi
jne 0x50fe93
mov dword [0x584cfc], 0x69
xor ebp, ebp
mov eax, dword [esp + 0x14]
jmp 0x51005f
movsx eax, word [edi + 0xa]
push eax
mov eax, dword [edi + 0xc]
push dword [eax]
lea eax, [ebx + 0x54]
push eax
call fcn.005358e0
add esp, 0xc
push dword [esp + 0x28]
push dword [esp + 0x1c]
push 0
push dword [esp + 0x28]
push 0
push ebx
call fcn.0050f890
mov ebp, eax
mov eax, dword [esp + 0x14]
jmp 0x51005f
cmp byte [esp + 0x13], 0
je 0x50ff83
mov esi, dword [0x58f6a4]
test esi, esi
je 0x50fe88
nop
cmp dword [esi + 8], 0
je 0x50ff6c
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x50fef7
mov dword [ebx + 0x54], eax
jmp 0x50ff1a
lea eax, [esi + 0xc]
push eax
call fcn.005554c6
test eax, eax
je 0x50ff6c
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebx + 0x54]
push eax
call fcn.005358e0
add esp, 0xc
push dword [esp + 0x28]
mov dword [0x584cfc], 0
push dword [esp + 0x1c]
push 0
push dword [esp + 0x28]
push 0
push ebx
call fcn.0050f890
mov ebp, eax
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x50fe8a
push ebx
call fcn.005101a0
push edi
push dword [esp + 0x24]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.0050f6c0
mov ebx, eax
test ebx, ebx
je 0x50fe8a
jmp 0x50ff70
mov ebp, dword [esp + 0x24]
mov esi, dword [esi]
test esi, esi
jne 0x50fee0
mov eax, dword [esp + 0x14]
jmp 0x51005f
call dword [0x57e2b4]
mov edi, eax
xor ebp, ebp
jmp 0x50ff94
mov esi, dword [esp + 0x30]
push dword [esp + 0x1c]
add edi, 0xbb8
push dword [esp + 0x24]
push esi
call fcn.00510a30
test eax, eax
je 0x50fe88
lea eax, [esp + 0x34]
push eax
push edi
call fcn.00510e20
mov esi, eax
test esi, esi
je 0x50ffdf
movzx eax, word [esi + 4]
mov dword [0x584cfc], eax
test eax, eax
je 0x50fffb
lea eax, [esp + 0x34]
push eax
push edi
call fcn.00510e20
mov esi, eax
test esi, esi
jne 0x50ffc1
test ebp, ebp
jne 0x50fff0
call fcn.00510c20
call dword [0x57e2b4]
mov edi, eax
inc ebp
cmp ebp, 3
jl 0x50ff90
mov eax, dword [0x584cfc]
test esi, esi
jne 0x510019
xor ebp, ebp
test eax, eax
jne 0x50fe8a
mov eax, dword [esp + 0x14]
mov dword [0x584cfc], 0x69
jmp 0x51005f
movzx eax, word [esi + 0x14]
mov edi, dword [esi + 0xc]
mov word [ebx + 0x48], ax
movzx eax, word [esi + 0x10]
mov word [ebx + 0x46], ax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x54], eax
push 0
push 0
call fcn.00510e20
test eax, eax
jne 0x510033
push dword [esp + 0x28]
push dword [esp + 0x1c]
push edi
push dword [esp + 0x28]
push 1
push ebx
call fcn.0050f890
mov ebp, eax
mov eax, dword [esp + 0x14]
jmp 0x51005f
xor eax, eax
push eax
call fcn.00534ada
add esp, 4
test ebp, ebp
jne 0x510076
test ebx, ebx
je 0x510076
push ebx
call fcn.005101a0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret 8