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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ad248
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
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 0x47d2ac
movzx eax, word [esi + 0x5c]
mov ecx, dword [esi + 0x48]
cmp ax, 0xff
movzx eax, ax
jb 0x47d28b
mov eax, 0xff
add esi, 0x68
push esi
mov byte [ecx + 9], al
call fcn.0044b010
push 0x5c59e0
push esi
call fcn.0044b130
add esp, 8
xor eax, eax
jmp 0x47d53c
cmp dword [esi + 0x64], 1
jne 0x47d305
mov ecx, dword [esi + 0x6c]
mov eax, dword [0x5ba9c8]
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.00408340
mov dword [esp + 0x28], eax
jmp 0x47d538
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.0047bea0
mov ecx, dword [esi + 0x6c]
mov eax, dword [0x5ba9c8]
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.0040c5c0
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.00408340
test eax, eax
mov dword [esp + 0x28], eax
jl 0x47d39e
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
push ecx
call fcn.00408340
mov dword [esp + 0x28], eax
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x78], 1
mov ecx, dword [0x603260]
mov eax, dword [ecx]
push eax
push 0x5bcc34
lea edi, [esp + 0x1c]
call fcn.004126f0
mov esi, dword [esp + 0x34]
add esp, 8
add esi, 0x68
push esi
call fcn.0044b010
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.0044b130
add esp, 8
push str.srf.qq.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x47d43b
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.0040a090
push 0x1f40
push 0x5c59e8
call fcn.00403650
add esp, 8
push esi
call fcn.0044b010
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.0044b130
add esp, 8
mov edx, 0x5bcc3c
lea edi, [esp + 0x14]
call fcn.004040f0
mov dword [esp + 0x2c], vtable.CSeqIDGenerator.0
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x7c], 2
call fcn.0044e010
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x7c], 1
call fcn.0044f0a0
test al, al
jne 0x47d4a1
lea edx, [esp + 0x48]
push edx
call fcn.0044f130
test al, al
jne 0x47d4a1
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 0x5bcb8c
lea edi, [esp + 0x1c]
call fcn.00403650
add ebx, 1
add esp, 8
cmp ebx, 0x10
jb 0x47d4a3
push 2
push 0x5c17c8
mov edx, edi
push edx
call fcn.00403fc0
xor ebx, ebx
movzx eax, byte [esp + ebx + 0x48]
push eax
push 0x5bcb8c
lea edi, [esp + 0x1c]
call fcn.00403650
add ebx, 1
add esp, 8
cmp ebx, 0x10
jb 0x47d4d3
push esi
call fcn.0044b010
mov edi, dword [esp + 0x14]
push edi
push esi
call fcn.0044b130
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 0x47d527
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 0x47d538
push eax
call fcn.0057876f
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.005787fd
mov esp, ebp
pop ebp
ret