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

Disassembly:
push ebp
lea ebp, [esp - 0x588]
sub esp, 0x588
push 0xffffffffffffffff
push 0x43d2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0xf507c8]
xor eax, ebp
mov dword [ebp + 0x584], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x590]
mov dword [ebp - 0x30], esi
call fcn.00409346
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40336f
push 0x80004005
call fcn.00401160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
call fcn.004159a0
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov edi, eax
lea edx, [ebp + 0x470]
mov dword [ebp - 0x18], edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4033a5
lea ecx, [ebp + 0x470]
push 0x440080
push ecx
call fcn.0042900f
add esp, 8
test eax, eax
jne 0x4033f2
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4033ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x403a07
lea ecx, [ebp + 0x470]
push str.LIST
push ecx
call fcn.004289a0
add esp, 8
test eax, eax
je 0x403423
mov edx, dword [esi + 0x808]
push 0
push 0x898
push 0xf51bf0
push edx
call dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp + 0x470]
push str.GINF
push eax
call fcn.004289a0
add esp, 8
test eax, eax
je 0x403763
lea ecx, [ebp + 0x475]
xor eax, eax
push ecx
lea edx, [ebp + 0x570]
push 0x44006c
push edx
mov dword [ebp + 0x570], eax
mov dword [ebp + 0x574], eax
mov dword [ebp + 0x578], eax
mov dword [ebp + 0x57c], eax
mov dword [ebp + 0x580], eax
call fcn.00428f32
lea eax, [ebp + 0x570]
push eax
call fcn.00429004
add esp, 0x10
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00402070
push esi
lea ecx, [ebp - 0x14]
push str.Select__FROM_userinfo_WHERE_id___d
push ecx
call fcn.00401550
mov ecx, dword [edi + 0x3f8]
add esp, 0xc
mov byte [ebp - 4], 1
call fcn.0040ad86
test eax, eax
je 0x4034c2
mov ecx, dword [edi + 0x3f8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [edi + 0x3f8]
mov eax, dword [ebp - 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push 0
push eax
push 0
call edx
mov eax, dword [edi + 0x3f8]
cmp dword [eax + 0xc8], 0
jne 0x403737
call fcn.00409346
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403504
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 - 0x28], eax
mov byte [ebp - 4], 2
call fcn.00409346
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403531
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 - 0x20], eax
mov byte [ebp - 4], 3
call fcn.00409346
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40355e
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 - 0x24], eax
mov byte [ebp - 4], 4
call fcn.00409346
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40358b
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 - 0x2c], eax
mov bl, 5
mov byte [ebp - 4], bl
call fcn.00409346
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4035b9
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
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [edi + 0x3f8]
push str.nickname
mov byte [ebp - 4], 6
call fcn.0040d457
mov ecx, dword [edi + 0x3f8]
lea edx, [ebp - 0x20]
push edx
push 0x440034
call fcn.0040d457
mov ecx, dword [edi + 0x3f8]
lea eax, [ebp - 0x24]
push eax
push 0x440030
call fcn.0040d457
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [edi + 0x3f8]
push str.address
call fcn.0040d457
mov ecx, dword [edi + 0x3f8]
lea edx, [ebp - 0x1c]
push edx
push str.password
call fcn.0040d457
mov ecx, dword [ebp - 0x28]
mov dword [ebp], esi
lea edx, [ebp + 4]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x403640
mov ecx, dword [ebp - 0x20]
lea edx, [ebp + 0x18]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x403650
mov eax, dword [ebp - 0x24]
push eax
call fcn.00429004
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov dword [ebp + 0x24], eax
lea edx, [ebp + 0x28]
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x403670
mov esi, dword [ebp - 0x1c]
mov ecx, esi
lea edx, [ebp + 0x5a]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x403682
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403714
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
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 0x403737
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x3f8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x808]
push 0
push 0x70
lea eax, [ebp]
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp + 0x470]
push str.UINF
push eax
call fcn.004289a0
add esp, 8
test eax, eax
je 0x4039df
lea ecx, [ebp + 0x475]
xor eax, eax
push ecx
lea edx, [ebp + 0x570]
push 0x44006c
push edx
mov dword [ebp + 0x570], eax
mov dword [ebp + 0x574], eax
mov dword [ebp + 0x578], eax
mov dword [ebp + 0x57c], eax
mov dword [ebp + 0x580], eax
call fcn.00428f32
lea eax, [ebp + 0x570]
push eax
call fcn.00429004
mov esi, dword [ebp - 0x30]
mov edx, dword [esi + 0x808]
add esp, 0x10
push 0
push 0x70
lea ecx, [ebp]
push ecx
mov edi, eax
push edx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x403864
mov eax, dword [esi + 0x808]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x440004
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
jg 0x403833
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x403a07
push 0
push 0x43ff8c
lea ecx, [ebp - 0x14]
call fcn.00402400
mov edx, dword [ebp + 0x24]
push edi
lea ecx, [ebp + 0x28]
push ecx
push edx
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp + 4]
push ecx
lea edx, [ebp + 0x5a]
push edx
lea eax, [ebp - 0x14]
push str.update_userinfo_set_password_s_nickname_s_sex_s_age_d_address_s_where_id__ld
push eax
call fcn.00401550
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi + 0x3f8]
add esp, 0x20
mov byte [ebp - 4], 8
call fcn.0040ad86
test eax, eax
je 0x4038bc
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 0x4038df
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 esi, pe_nt_image_headers32
mov dword [ebp - 4], 0
jmp 0x403940
push 0x400
lea ecx, [ebp + 0x70]
push 0
push ecx
call fcn.00428790
push esi
lea edx, [ebp + 0x70]
push 0x43fef0
push edx
call fcn.00428f32
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebx + 0x808]
add esp, 0x18
push 0
push 0x400
lea eax, [ebp + 0x70]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40398e
mov edx, dword [ebx + 0x808]
push edx
jmp 0x4037ef
cmp esi, 0xf0
jne 0x4039df
mov edx, dword [0xf51be8]
xor eax, eax
test edx, edx
jbe 0x4039df
mov ecx, 0xf51bf0
cmp dword [ecx], edi
je 0x4039b5
inc eax
add ecx, 0x2c
cmp eax, edx
jb 0x4039a7
jmp 0x4039df
imul eax, eax, 0x2c
xor ecx, ecx
lea eax, [eax + 0xf51bf4]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
lea ecx, [ebp + 4]
mov edx, ecx
sub eax, edx
mov dl, byte [ecx]
mov byte [ecx + eax], dl
inc ecx
test dl, dl
jne 0x4039d5
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 0x403a05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x584]
xor ecx, ebp
call fcn.00427b11
add ebp, 0x588
mov esp, ebp
pop ebp
ret