Function at 0x402e00
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x474]
sub esp, 0x474
push 0xffffffffffffffff
push 0x43d290
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0xf507c8]
xor eax, ebp
mov dword [ebp + 0x470], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x47c]
xor esi, esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], esi
call fcn.00409346
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x402e64
push 0x80004005
call fcn.00401160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
push 0x70
lea ecx, [ebp]
push esi
push ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 0xffffffff
call fcn.00428790
add esp, 0xc
call fcn.004159a0
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
push 0x70
lea ecx, [ebp]
push 0
push ecx
mov esi, eax
call fcn.00428790
mov eax, dword [ebx + 0x808]
add esp, 0xc
push 0
push 0x70
lea edx, [ebp]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x402f1b
mov ecx, dword [ebx + 0x808]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.REGT_recv
call fcn.00402bd0
call fcn.004021e0
lea eax, [edi - 0x10]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402f11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4032e7
push 0
push 0x43ff8c
lea ecx, [ebp - 0x14]
call fcn.00402400
lea ecx, [ebp - 0x14]
push str.SELECT_id_FROM_userinfo
push ecx
call fcn.00401550
mov ecx, dword [esi + 0x3f8]
add esp, 8
mov byte [ebp - 4], 1
call fcn.0040ad86
test eax, eax
je 0x402f5b
mov ecx, dword [esi + 0x3f8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi + 0x3f8]
call fcn.0040ad86
test eax, eax
jne 0x402f7e
mov ecx, dword [esi + 0x3f8]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
call edx
mov ecx, dword [esi + 0x3f8]
cmp dword [ecx + 0xc8], 0
jne 0x402f98
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push 2
push 1
call edx
call fcn.00409346
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402fb2
push 0x80004005
call fcn.00401160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x3f8]
cmp dword [ecx + 0xc8], 0
mov byte [ebp - 4], 2
jne 0x402ff2
lea edx, [ebp - 0x1c]
push edx
push 0x43ff70
call fcn.0040d457
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00429004
add esp, 4
mov edi, eax
jmp 0x402ff5
mov edi, dword [ebp - 0x24]
mov ecx, dword [esi + 0x3f8]
cmp dword [ecx + 0xc8], 0
jne 0x403010
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push 1
push 1
call eax
nop
mov ecx, dword [esi + 0x3f8]
cmp dword [ecx + 0xc8], 0
jne 0x403056
lea edx, [ebp - 0x1c]
push edx
push 0x43ff70
call fcn.0040d457
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00429004
add esp, 4
cmp eax, edi
jle 0x40304e
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00429004
add esp, 4
mov dword [ebp - 0x24], eax
mov edi, eax
mov ecx, dword [esi + 0x3f8]
jmp 0x403004
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403079
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x18], 0xfb
mov dword [ebp - 4], 0
je 0x4031a9
inc edi
cmp edi, 1
jne 0x40309d
mov dword [ebp - 0x24], 0x3e8
mov edi, dword [ebp - 0x24]
push 0
push 0x43ff8c
lea ecx, [ebp - 0x14]
mov dword [ebp], edi
call fcn.00402400
mov edx, dword [ebp + 0x24]
lea eax, [ebp + 0x5a]
push eax
lea ecx, [ebp + 0x28]
push ecx
push edx
mov edx, dword [ebp]
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp + 4]
push ecx
push edx
lea eax, [ebp - 0x14]
push str.insert_into_userinfo_id_nickname_sex_age_address_password__values__ld__s__s__d__s__s_
push eax
call fcn.00401550
mov ecx, dword [esi + 0x3f8]
add esp, 0x20
mov byte [ebp - 4], 4
call fcn.0040ad86
test eax, eax
je 0x4030f8
mov ecx, dword [esi + 0x3f8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi + 0x3f8]
call fcn.0040ad86
test eax, eax
jne 0x40311b
mov ecx, dword [esi + 0x3f8]
mov edx, dword [ecx]
push eax
push str.select__from_userinfo
push eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi + 0x3f8]
push ecx
mov ecx, dword [edx + 8]
call fcn.0040bfab
mov ecx, dword [esi + 0x3f8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov dword [ebp - 0x18], 0xfa
mov dword [ebp - 4], 0
jmp 0x4031a9
push 0x400
lea ecx, [ebp + 0x70]
push 0
push ecx
call fcn.00428790
mov edi, dword [ebp - 0x18]
push edi
lea edx, [ebp + 0x70]
push 0x43fef0
push edx
call fcn.00428f32
mov ecx, dword [ebx + 0x808]
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 0x18
push 0
push 0x400
lea eax, [ebp + 0x70]
push eax
push ecx
call esi
cmp eax, 0xffffffff
jne 0x403231
mov edx, dword [ebx + 0x808]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.REGT_send_id
call fcn.00402bd0
call fcn.004021e0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x402f05
cmp edi, 0xfa
jne 0x4032bf
push 0x400
lea ecx, [ebp + 0x70]
push 0
push ecx
call fcn.00428790
mov edx, dword [ebp]
push edx
lea eax, [ebp + 0x70]
push 0x43fef0
push eax
call fcn.00428f32
mov edx, dword [ebx + 0x808]
add esp, 0x18
push 0
push 0x400
lea ecx, [ebp + 0x70]
push ecx
push edx
call esi
cmp eax, 0xffffffff
jne 0x4032bf
mov eax, dword [ebx + 0x808]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.REGT_send
call fcn.00402bd0
call fcn.004021e0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x402f05
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4032e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x470]
xor ecx, ebp
call fcn.00427b11
add ebp, 0x474
mov esp, ebp
pop ebp
ret