Function at 0x436a10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cda08
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [0x50c48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x50c48c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov eax, dword [ebp + 0x80]
push eax
push 0x4eb7ec
lea edi, [esp + 0x1c]
call fcn.004385e0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
add esp, 8
cmp eax, ebx
jl 0x436a9b
push str.wbf_ap_17164
push esi
call fcn.004ae2f4
add esp, 8
cmp eax, ebx
je 0x436a9b
sub eax, esi
cmp eax, 0xffffffff
jne 0x436b88
cmp dword [esi - 0xc], ebx
jl 0x436abd
push str.wbf_ap_17165
push esi
call fcn.004ae2f4
add esp, 8
cmp eax, ebx
je 0x436abd
sub eax, esi
cmp eax, 0xffffffff
jne 0x436b88
mov eax, dword [ebp + 0x48]
cmp eax, ebx
jne 0x436ad3
mov edx, dword [ebp]
mov eax, dword [edx + 0x2c]
mov ecx, ebp
call eax
jmp 0x436c48
mov ebx, dword [0x4d54dc]
lea esp, [esp]
mov ecx, dword [ebp + 0x40]
push 0
push eax
push ecx
mov ecx, dword [ebp + 0x6c]
push ecx
call ebx
mov edi, eax
test edi, edi
jle 0x436b23
mov eax, dword [ebp + 0x48]
cmp eax, edi
jbe 0x436b0d
mov ecx, dword [ebp + 0x40]
sub eax, edi
push eax
lea edx, [ecx + edi]
push edx
push ecx
call fcn.004ade50
add esp, 0xc
mov eax, dword [ebp + 0x48]
cmp eax, edi
jb 0x436b39
sub eax, edi
push 0
push eax
lea esi, [ebp + 0x3c]
call fcn.0042ec50
jmp 0x436b39
jge 0x436b39
call dword [0x4d5504]
mov esi, eax
cmp esi, 0x2733
jne 0x436b62
mov byte [ebp + 0x76], 1
test edi, edi
jle 0x436b44
mov eax, dword [ebp + 0x48]
test eax, eax
ja 0x436ae0
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x6c]
push 0x23
push 0x81da
push eax
push ecx
call dword [0x4d54d4]
mov esi, dword [esp + 0x14]
jmp 0x436c3e
test esi, esi
jne 0x436b69
or esi, 0xffffffff
lea eax, [esp + 0x14]
call fcn.004921d0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x48], ebx
jne 0x436b9c
mov edx, dword [ebp]
mov eax, dword [edx + 0x2c]
mov ecx, ebp
call eax
jmp 0x436c48
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x40]
push 0
push eax
push ecx
mov ecx, dword [ebp + 0x6c]
push ecx
call dword [0x4d54dc]
mov edi, eax
test edi, edi
jle 0x436bea
mov eax, dword [ebp + 0x48]
cmp eax, edi
jbe 0x436bd4
mov ecx, dword [ebp + 0x40]
sub eax, edi
push eax
lea edx, [ecx + edi]
push edx
push ecx
call fcn.004ade50
add esp, 0xc
mov eax, dword [ebp + 0x48]
cmp eax, edi
jb 0x436c0d
sub eax, edi
push 0
push eax
lea esi, [ebp + 0x3c]
call fcn.0042ec50
jmp 0x436c0d
jge 0x436c15
call dword [0x4d5504]
mov esi, eax
cmp esi, 0x2733
jne 0x436c82
mov ebx, 1
add dword [esp + 0x18], ebx
mov byte [ebp + 0x76], 1
test edi, edi
mov esi, dword [esp + 0x14]
jl 0x436c1a
cmp edi, dword [ebp + 0x48]
je 0x436c29
test ebx, ebx
je 0x436c29
cmp dword [esp + 0x18], 5
jl 0x436ba0
mov ecx, dword [ebp + 0x68]
mov edx, dword [ebp + 0x6c]
push 0x21
push 0x81da
push ecx
push edx
call dword [0x4d54d4]
mov eax, dword [ebp]
mov edx, dword [eax + 0x24]
mov ecx, ebp
call edx
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436c6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x436c89
or esi, 0xffffffff
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436cb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret