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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c84b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1fec
call fcn.00404820
mov eax, dword [0x412150]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1fe4], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1fd0], ebx
mov eax, dword [0x413088]
mov ecx, dword [eax]
lea edx, [ebp - 0x1fd0]
push edx
push 0x40d490
mov edx, dword [0x413084]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, ebx
jge 0x4014da
call section..text
mov edx, dword [eax]
push 0xfa0
push str.ProcessSimpleRequest
push str.Failure_when_getting_sessionSequence_form_global_table
mov ecx, eax
mov eax, dword [edx]
call eax
push 1
call fcn.00404781
add esp, 4
mov edi, eax
mov dword [ebp - 0x1fd4], edi
mov byte [edi], bl
mov dword [ebp - 0x1fec], ebx
jmp 0x401506
mov edi, dword [ebp - 0x1fd4]
mov byte [ebp - 0x1fc4], 0
push 0
push 0x1fa0
lea ecx, [ebp - 0x1fc4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
js 0x4018ab
jne 0x401537
test ebx, ebx
je 0x4018ab
mov byte [ebp + eax - 0x1fc4], 0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401544
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x1fc4]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401558
sub eax, esi
lea eax, [eax + edx + 1]
push eax
call fcn.00404781
add esp, 4
mov ebx, eax
mov dword [ebp - 0x1fec], ebx
mov ecx, edi
mov edx, ebx
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x401580
lea eax, [ebp - 0x1fc4]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401592
sub eax, esi
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4015a0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1fd4]
push ecx
call fcn.00404691
add esp, 4
mov dword [ebp - 0x1fd4], ebx
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4015d0
sub eax, edx
cmp eax, 0x3f
jb 0x401500
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4015e7
sub eax, edx
mov ecx, str._n______FIN_MENSAJE_______236782234655644564512536787685_r_n
lea eax, [eax + ebx - 0x3f]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401620
test dl, dl
je 0x40161c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401620
add eax, 2
add ecx, 2
test dl, dl
jne 0x401600
xor eax, eax
jmp 0x401625
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401500
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401632
sub eax, edx
mov byte [eax + ebx - 0x3f], cl
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401644
sub eax, edx
jne 0x401689
call section..text
mov edx, dword [eax]
push 0xfa0
push str.ProcessSimpleRequest
push str.Received_empty_command_string
mov ecx, eax
mov eax, dword [edx]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00403e26
mov esp, ebp
pop ebp
ret
xor edi, edi
mov dword [ebp - 0x1fe8], edi
mov dword [ebp - 0x1fdc], edi
mov byte [ebp - 4], 1
push ebx
call fcn.00403950
add esp, 4
mov esi, eax
cmp esi, edi
jne 0x401793
mov dword [ebp - 0x1fd8], edi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1fd8]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x1fdc], edi
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1fd8]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call fcn.00404691
push esi
call fcn.00404776
add esp, 8
mov eax, dword [ebp - 0x1fd0]
mov ecx, dword [eax]
lea edx, [ebp - 0x1fe0]
push edx
mov edx, dword [ebp - 0x1fe4]
push edx
lea edx, [ebp - 0x1ffc]
push edx
push edi
push eax
mov eax, dword [ecx + 0x1c]
call eax
xor ebx, ebx
cmp eax, ebx
jl 0x4017e2
push 0xa
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1fe0]
push edx
call fcn.0040c733
add esp, 0xc
mov dword [ebp - 0x1fc8], ebx
mov dword [ebp - 0x1fcc], ebx
mov esi, dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
mov eax, dword [ebp - 0x1fcc]
cmp eax, dword [ebp - 0x1fe0]
jge 0x4017b2
lea ecx, [ebp - 0x1fc8]
push ecx
lea edx, [ebp - 0x1fcc]
push edx
mov eax, dword [ebp - 0x1ff4]
push eax
call esi
test eax, eax
js 0x40178b
mov ecx, dword [ebp - 0x1fc8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004013b0
add esp, 8
mov eax, dword [ebp - 0x1fc8]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc dword [ebp - 0x1fcc]
jmp 0x401742
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x1fd8], eax
cmp eax, edi
jne 0x4016b4
push 0x8007000e
call fcn.004010d0
mov ecx, dword [ebp - 0x1ff4]
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
lea edx, [ebp - 0x1ffc]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x1fd0]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [ebp - 4], ebx
jmp 0x40187d
push ebx
cmp eax, 0xffffec78
jne 0x4017f7
push 0xb
push str.NOT_FOUND_r_n
mov eax, dword [ebp + 8]
push eax
jmp 0x401816
cmp eax, 0xffffec77
jne 0x40180b
push 0xb
push str.NOT_FOUND_r_n
mov ecx, dword [ebp + 8]
push ecx
jmp 0x401816
push 7
push str.ERROR_r_n
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov eax, dword [ebp - 0x1fd0]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [ebp - 4], ebx
jmp 0x40187d
cmp edi, ebx
je 0x401888
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x1fe8], ebx
jne 0x4018a1
mov edx, dword [ebp - 0x1fe4]
cmp dword [edx], ebx
jne 0x4018a1
xor eax, eax
jmp 0x40166d
mov eax, 1
jmp 0x40166d
call section..text
mov edx, dword [eax]
push 0xfa0
push str.ProcessSimpleRequest
push str.Failure_in_recv
jmp 0x401665