Function at 0x446920
Capabilities:
Receive data
Receive data on socket
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x470dc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x860
mov eax, dword [0x48aaf0]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
mov dword [esp + 0x860], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
call fcn.004611e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x874], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov ecx, esi
mov byte [esp + 0x874], 1
call fcn.00446760
mov dword [esp + 0x60], eax
call dword [0x472154]
mov esi, dword [sym.imp.MSVCR71.dll_rand]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [esp + 0x64], edx
mov word [esp + 0x78], 0x1d51
call esi
and eax, 0x3fff
inc eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
call esi
inc eax
cmp ax, 0xfff0
mov word [esp + 0x68], ax
jbe 0x4469ec
mov word [esp + 0x68], 0xfff0
mov ecx, dword [0x48aea8]
add ecx, 0x27c
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
mov dword [esp + 0x70], eax
mov eax, ebx
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x446a10
lea edi, [esp + 0x80]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x446a21
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x80]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x446a41
mov edx, dword [esp + 0x14]
test edx, edx
mov bx, word [0x475a8c]
mov word [edi], bx
je 0x446a9c
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x446a60
sub eax, esi
mov dword [esp + 0x18], eax
je 0x446a9c
mov eax, edx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x446a71
lea edi, [esp + 0x80]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x446a82
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x446ab6
lea edi, [esp + 0x80]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x446aa4
mov dx, word [0x473484]
mov word [edi], dx
lea edi, [esp + 0x80]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x446ac0
mov eax, dword [ebp + 0x10]
mov word [edi], bx
lea edi, [esp + 0x80]
dec edi
test eax, eax
je 0x446af3
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x446ae0
mov ax, word [0x476984]
mov word [edi], ax
jmp 0x446b05
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x446af3
mov cx, word [0x473484]
mov word [edi], cx
lea eax, [esp + 0x80]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x446b10
sub eax, edx
lea esi, [eax + 0x21]
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], esi
call fcn.004612c0
push esi
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x3c]
call fcn.00461330
push str.config_server.cfg
lea eax, [esp + 0x24]
push 0x48af30
push eax
call fcn.00401490
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x878], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x400
lea ecx, [esp + 0x468]
push ecx
push str.stat.pipisite.com
push str.Host
push str.JiaFilmApp_Server
call dword [0x472148]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x1643
push str.Port
push str.JiaFilmApp_Server
call dword [0x472150]
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
push eax
mov dword [esp + 0x34], edx
mov word [esp + 0x28], 2
call dword [0x472dd4]
mov word [esp + 0x26], ax
lea eax, [esp + 0x460]
push eax
call dword [0x472e04]
or edi, 0xffffffff
cmp eax, edi
mov dword [esp + 0x28], eax
jne 0x446c14
lea ecx, [esp + 0x460]
push ecx
call dword [0x472dd8]
test eax, eax
je 0x446c1f
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x446c35
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov dword [esp + 0x874], edi
jmp 0x446d13
push 2
mov ecx, ebx
call fcn.00446690
mov edi, eax
cmp edi, 0xffffffff
je 0x446cfe
mov ecx, dword [ebx + 0x7c]
test ecx, ecx
mov eax, 5
jne 0x446cfe
mov ebx, dword [0x4721b4]
jmp 0x446c70
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
lea esp, [esp]
test eax, eax
jle 0x446cfe
push 0x10
lea edx, [esp + 0x28]
push edx
dec eax
push 0
mov dword [esp + 0x24], eax
push esi
lea eax, [esp + 0x70]
push eax
push edi
call dword [0x472df4]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x7c]
test eax, eax
mov esi, 0x14
jne 0x446cfe
test esi, esi
jle 0x446ce6
push 0x64
dec esi
call ebx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x54]
push eax
push 0
push 0x400
lea ecx, [esp + 0x470]
push ecx
push edi
mov dword [esp + 0x34], 0x10
call dword [0x472de0]
cmp eax, 0x20
jge 0x446cf7
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x7c]
test eax, eax
je 0x446ca3
jmp 0x446cfe
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x446c61
jmp 0x446cfe
push edi
call dword [0x472e10]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov dword [esp + 0x874], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.004611f0
mov ecx, dword [esp + 0x86c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x864]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046b58e
mov esp, ebp
pop ebp
ret 0xc