Function at 0x525510
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 [0x598c84], 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.00527280
mov esi, eax
test esi, esi
je 0x5255a1
push dword [esp + 0x18]
push 0x81
push esi
call fcn.005270e0
mov edi, eax
test edi, edi
je 0x52588d
push edi
call fcn.00522730
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x52588f
push dword [esp + 0x18]
push esi
push edi
mov esi, eax
push esi
call fcn.00527090
mov eax, esi
mov dword [esp + 0x20], esi
jmp 0x5255aa
mov eax, 0x444144
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x30]
movzx ecx, word [esi + 0x12]
mov dword [esp + 0x1c], ecx
cmp ecx, 0xfffe
jne 0x5255fc
cmp byte [eax], bl
jne 0x5255d5
mov dword [0x598c84], 4
mov eax, dword [esp + 0x14]
jmp 0x52588f
push eax
push 8
call fcn.00522c50
test eax, eax
jne 0x5255f4
mov eax, dword [esp + 0x14]
mov dword [0x598c84], 0x29
jmp 0x52588f
dec eax
movzx eax, ax
mov dword [esp + 0x1c], eax
call fcn.005258c0
cmp dword [0x5a290c], ebx
jne 0x52561c
mov eax, dword [esp + 0x14]
mov dword [0x598c84], 0x60
jmp 0x52588f
push edi
push dword [esp + 0x24]
push dword [esp + 0x3c]
push esi
call fcn.00524ef0
mov ebx, eax
test ebx, ebx
je 0x5255cc
call fcn.00525ed0
push dword [esi + 0x18]
mov byte [esp + 0x17], al
push esi
call fcn.00527280
mov ebp, eax
test ebp, ebp
je 0x5256fa
cmp byte [ebp], 0
je 0x5256fa
push dword [esp + 0x18]
push 0x200
push ebp
call fcn.005270e0
mov edi, eax
test edi, edi
je 0x5256b8
push edi
call fcn.00522730
mov esi, eax
add esp, 4
test esi, esi
je 0x5256b8
push dword [0x598ca8]
push ebp
push edi
push esi
call fcn.00527090
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
je 0x525699
mov dword [ebx + 0x54], eax
jmp 0x5256d9
push esi
call sub.WS2_32.dll_gethostbyname
push esi
mov edi, eax
call fcn.00549ff4
add esp, 4
test edi, edi
jne 0x5256c3
mov dword [0x598c84], 0x69
xor ebp, ebp
mov eax, dword [esp + 0x14]
jmp 0x52588f
movsx eax, word [edi + 0xa]
push eax
mov eax, dword [edi + 0xc]
push dword [eax]
lea eax, [ebx + 0x54]
push eax
call fcn.0054adf0
add esp, 0xc
push dword [esp + 0x28]
push dword [esp + 0x1c]
push 0
push dword [esp + 0x28]
push 0
push ebx
call fcn.005250c0
mov ebp, eax
mov eax, dword [esp + 0x14]
jmp 0x52588f
cmp byte [esp + 0x13], 0
je 0x5257b3
mov esi, dword [0x5a4384]
test esi, esi
je 0x5256b8
nop
cmp dword [esi + 8], 0
je 0x52579c
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x525727
mov dword [ebx + 0x54], eax
jmp 0x52574a
lea eax, [esi + 0xc]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x52579c
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebx + 0x54]
push eax
call fcn.0054adf0
add esp, 0xc
push dword [esp + 0x28]
mov dword [0x598c84], 0
push dword [esp + 0x1c]
push 0
push dword [esp + 0x28]
push 0
push ebx
call fcn.005250c0
mov ebp, eax
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x5256ba
push ebx
call fcn.005259d0
push edi
push dword [esp + 0x24]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.00524ef0
mov ebx, eax
test ebx, ebx
je 0x5256ba
jmp 0x5257a0
mov ebp, dword [esp + 0x24]
mov esi, dword [esi]
test esi, esi
jne 0x525710
mov eax, dword [esp + 0x14]
jmp 0x52588f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor ebp, ebp
jmp 0x5257c4
mov esi, dword [esp + 0x30]
push dword [esp + 0x1c]
add edi, 0xbb8
push dword [esp + 0x24]
push esi
call fcn.00526260
test eax, eax
je 0x5256b8
lea eax, [esp + 0x34]
push eax
push edi
call fcn.00526650
mov esi, eax
test esi, esi
je 0x52580f
movzx eax, word [esi + 4]
mov dword [0x598c84], eax
test eax, eax
je 0x52582b
lea eax, [esp + 0x34]
push eax
push edi
call fcn.00526650
mov esi, eax
test esi, esi
jne 0x5257f1
test ebp, ebp
jne 0x525820
call fcn.00526450
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
inc ebp
cmp ebp, 3
jl 0x5257c0
mov eax, dword [0x598c84]
test esi, esi
jne 0x525849
xor ebp, ebp
test eax, eax
jne 0x5256ba
mov eax, dword [esp + 0x14]
mov dword [0x598c84], 0x69
jmp 0x52588f
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.00526650
test eax, eax
jne 0x525863
push dword [esp + 0x28]
push dword [esp + 0x1c]
push edi
push dword [esp + 0x28]
push 1
push ebx
call fcn.005250c0
mov ebp, eax
mov eax, dword [esp + 0x14]
jmp 0x52588f
xor eax, eax
push eax
call fcn.00549ff4
add esp, 4
test ebp, ebp
jne 0x5258a6
test ebx, ebx
je 0x5258a6
push ebx
call fcn.005259d0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret 8