Function at 0x489130
Capabilities:
Resolve dns
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60d5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x50]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x2c], esi
jbe 0x4891ac
movzx eax, word [esi + 0x5c]
mov ecx, dword [esi + 0x48]
cmp ax, 0xff
movzx eax, ax
jb 0x48918b
mov eax, 0xff
add esi, 0x68
push esi
mov byte [ecx + 9], al
call fcn.0044bcd0
push 0x630988
push esi
call fcn.0044bdf0
add esp, 8
xor eax, eax
jmp 0x48943c
cmp dword [esi + 0x64], 1
jne 0x489205
mov ecx, dword [esi + 0x6c]
mov eax, dword [0x620e6c]
mov dword [esp + 0x20], ebx
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x24], bl
mov byte [esp + 0x26], 0x10
call dword [sym.imp.WS2_32.dll_htonl]
lea edx, [esp + 0x18]
mov byte [esp + 0x23], bl
push edx
add esi, 0x44
mov ebx, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0x24a9677e
call fcn.0044b8f0
mov dword [esp + 0x28], eax
jmp 0x489438
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0x80
lea ecx, [esp + 0x30]
mov dword [esp + 0x78], ebx
call fcn.00487dc0
mov ecx, dword [esi + 0x6c]
mov eax, dword [0x620e6c]
push ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x24], 0x10
mov byte [esp + 0x26], 0x10
mov byte [esp + 0x27], bl
mov byte [esp + 0x25], bl
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
push edx
mov eax, 0x24a9677e
call fcn.00405890
mov dword [esp + 0x28], eax
lea edi, [esi + 0x44]
add esp, 4
lea eax, [esp + 0x18]
mov dword [edi + 0x10], ebx
push eax
mov ebx, 0x10
mov esi, edi
call fcn.0044b8f0
test eax, eax
mov dword [esp + 0x28], eax
jl 0x48929e
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
push ecx
call fcn.0044b8f0
mov dword [esp + 0x28], eax
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x78], 1
mov ecx, dword [0x67f278]
mov eax, dword [ecx]
push eax
push 0x626af8
lea edi, [esp + 0x1c]
call fcn.0040ac80
mov esi, dword [esp + 0x34]
add esp, 8
add esi, 0x68
push esi
call fcn.0044bcd0
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.0044bdf0
add esp, 8
push str.srf.qq.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x48933b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, eax
mov eax, edi
call fcn.004173d0
push 0x1f40
push 0x630990
call fcn.0040e190
add esp, 8
push esi
call fcn.0044bcd0
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.0044bdf0
add esp, 8
mov edx, 0x6244e0
lea edi, [esp + 0x14]
call fcn.00403760
mov dword [esp + 0x2c], vtable.CSeqIDGenerator.0
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x7c], 2
call fcn.00494a30
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x7c], 1
call fcn.00495ac0
test al, al
jne 0x4893a1
lea edx, [esp + 0x48]
push edx
call fcn.00495b50
test al, al
jne 0x4893a1
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
xor ebx, ebx
movzx ecx, byte [esp + ebx + 0x58]
push ecx
push 0x630890
lea edi, [esp + 0x1c]
call fcn.0040e190
add ebx, 1
add esp, 8
cmp ebx, 0x10
jb 0x4893a3
push 2
push 0x627d48
mov edx, edi
push edx
call fcn.0040aee0
xor ebx, ebx
movzx eax, byte [esp + ebx + 0x48]
push eax
push 0x630890
lea edi, [esp + 0x1c]
call fcn.0040e190
add ebx, 1
add esp, 8
cmp ebx, 0x10
jb 0x4893d3
push esi
call fcn.0044bcd0
mov edi, dword [esp + 0x14]
push edi
push esi
call fcn.0044bdf0
lea eax, [edi - 0x10]
add esp, 8
mov byte [esp + 0x78], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489427
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x489438
push eax
call fcn.005d27e0
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret