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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov esi, dword [ebp + 8]
mov byte [ebp - 0x19], 1
movzx eax, word [esi + 0x38]
test ax, ax
je 0x415660
cmp word [esi + 0x84], 0
jne 0x41587d
lea esi, [esi]
lea edi, [edi]
mov edx, dword [esi + 0x34]
test edx, edx
jne 0x415913
mov eax, dword [esi + 0xc8]
dec eax
cmp eax, 0xffffffff
je 0x41592b
cmp byte [ebp - 0x19], 0
mov dword [esi + 0xc8], eax
je 0x4157d4
mov eax, 1
mov ebx, 0xa
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov ecx, dword [esi + 4]
mov dword [esp], ecx
call sym.WaitForData_unsigned_int__bool__long_
xor edx, edx
cmp eax, 0xffffffff
je 0x4157cb
test eax, eax
jle 0x415966
mov byte [esi + 0xcc], 0
xor edx, edx
mov dword [esi + 0xd0], edx
mov dword [esp], esi
call method.c_SpipClient.DoRecv__
xor edx, edx
test eax, eax
je 0x4157cb
lea esi, [esi]
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x415948
movzx ecx, word [esi + 0x38]
test cx, cx
je 0x4157b0
movzx edx, cx
xor eax, eax
jmp 0x41570a
inc eax
cmp eax, 0x1f
jg 0x4159b9
cmp word [eax + eax + 0x55e990], dx
jne 0x415700
mov eax, 1
test al, al
je 0x4157b0
mov dword [ebp - 0x18], 0x55e970
movzx ebx, cx
mov dword [esp], 0x55e970
call sub.KERNEL32.dll_EnterCriticalSection
sub esp, 4
xor eax, eax
jmp 0x415746
inc eax
cmp eax, 0x1f
jg 0x41575a
cmp word [eax + eax + 0x55e990], bx
jne 0x415740
xor ecx, ecx
mov word [eax + eax + 0x55e990], cx
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_LeaveCriticalSection
mov ebx, dword [esi + 0xbc]
sub esp, 4
mov byte [ebx], 0x6c
mov byte [ebx + 1], 0x93
mov byte [ebx + 6], 0
mov word [ebx + 4], 0
mov word [ebx + 2], 0
movzx ecx, word [esi + 0x38]
mov byte [ebx + 9], 0
mov edx, dword [esi + 0xbc]
mov word [ebx + 7], cx
mov dword [esp + 4], edx
movzx eax, word [esi + 0x38]
mov dword [esp], eax
call sym.MarketStreamProcess_unsigned_short__char_
mov esi, esi
lea edi, [edi]
cmp byte [esi + 0xcd], 0
je 0x4157c6
cmp byte [esi + 0xcc], 0
jne 0x415939
mov edx, 1
lea esp, [ebp - 8]
mov eax, edx
pop ebx
pop esi
pop ebp
ret
xor eax, eax
mov ebx, 0xa
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov ecx, dword [esi + 4]
mov dword [esp], ecx
call sym.WaitForData_unsigned_int__bool__long_
xor edx, edx
cmp eax, 0xffffffff
je 0x4157cb
test eax, eax
jle 0x4159a7
mov byte [esi + 0xcd], 0
mov eax, dword [esi + 0xb4]
test eax, eax
jg 0x415835
jmp 0x4156e0
add dword [esi + 0x9c], eax
mov edx, dword [esi + 0xb8]
add edx, eax
mov eax, dword [esi + 0xb4]
cmp edx, eax
jge 0x41598c
mov dword [esi + 0xb8], edx
mov edx, dword [esi + 0xb8]
sub eax, edx
cmp eax, 0x58c
jle 0x415849
mov eax, 0x58c
mov dword [esp + 8], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov ecx, dword [esi + 0xb0]
add edx, ecx
mov dword [esp + 4], edx
mov edx, dword [esi + 4]
mov dword [esp], edx
call sub.WSOCK32.DLL_send
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x415813
lea esp, [ebp - 8]
xor edx, edx
mov eax, edx
pop ebx
pop esi
pop ebp
ret
xor ebx, ebx
movzx ecx, ax
mov edx, 0x55e9f0
jmp 0x41589d
inc ebx
add edx, 0xc
cmp ebx, 0x1f
jg 0x415660
movzx eax, word [edx]
cmp ecx, eax
jne 0x415890
cmp ebx, 0x1f
jg 0x415660
mov dword [esp], 0
call sym._time
mov edx, eax
lea eax, [ebx + ebx*2]
mov ebx, dword [esi + 0x30]
mov ecx, dword [eax*4 + 0x55e9f4]
test ebx, ebx
jne 0x4159c0
test ecx, ecx
je 0x4159f0
mov ebx, dword [esi + 0x1c]
mov eax, edx
sub eax, ebx
cmp eax, 0xe
jg 0x415660
mov eax, dword [ecx + 0x1c]
sub edx, eax
cmp edx, dword [0x5631ec]
jb 0x415660
mov dword [esi + 0x34], 1
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 2
jmp 0x415660
mov dword [esp], esi
call method.c_SpipClient.SendInstruct__
mov eax, dword [esi + 0xc8]
dec eax
cmp eax, 0xffffffff
jne 0x41567b
mov byte [ebp - 0x19], 0
mov eax, 8
jmp 0x41567b
call sym.os_yield__
mov edx, 1
jmp 0x4157cb
mov dword [esp], 0
lea ebx, [eax + 0x78]
call sym._time
xor edx, edx
cmp ebx, eax
jl 0x4157cb
jmp 0x4156eb
jne 0x4156e0
mov eax, dword [esi + 0xd0]
inc eax
cmp eax, 2
jle 0x415981
mov byte [esi + 0xcc], 1
xor eax, eax
mov dword [esi + 0xd0], eax
jmp 0x4156e0
inc dword [esi + 0x98]
xor edx, edx
xor eax, eax
mov dword [esi + 0xb4], edx
mov dword [esi + 0xb8], eax
jmp 0x4156e0
jne 0x4156e0
mov byte [esi + 0xcd], 1
jmp 0x4156e0
xor eax, eax
jmp 0x415719
test ecx, ecx
je 0x415660
mov ebx, dword [ecx + 0x1c]
sub edx, ebx
cmp edx, 0xe
jg 0x415660
mov dword [esi + 0x34], 2
mov dword [esi + 0x30], 0
mov dword [ecx + 0x34], 1
jmp 0x415660
mov dword [esi + 0x34], 1
jmp 0x415660