Function at 0x4ca75f
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [sym.stub.exe_language_scanner_globals_id]
mov ecx, dword [ecx + eax*4 - 4]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov esi, dword [sym.stub.exe_language_scanner_globals_id]
mov ecx, dword [ecx + esi*4 - 4]
mov ecx, dword [ecx + 0x24]
mov eax, dword [eax + 4]
lea ecx, [eax + ecx + 1]
cmp dword [edx + 0x14], ecx
jbe 0x4ca7de
push 0x5451a8
call fcn.004c2d20
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [edx + 0x10]
cmp dword [eax + 0x1c], 0
jne 0x4ca844
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_language_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [eax + edx*4 - 4]
mov ecx, dword [ecx + 0x14]
sub ecx, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [eax + edx*4 - 4]
sub ecx, dword [eax + 0x38]
cmp ecx, 1
jne 0x4ca83a
mov eax, 1
jmp 0x4cacc1
mov eax, 2
jmp 0x4cacc1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_language_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [eax + edx*4 - 4]
mov ecx, dword [ecx + 0x14]
sub ecx, dword [eax + 0xc]
sub ecx, 1
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 0
jmp 0x4ca87f
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 4]
jge 0x4ca8a5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x4ca876
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0x20], 2
jne 0x4ca8f1
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov dword [edx + 0x24], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax + 0x10]
mov dword [ecx + 0x10], 0
jmp 0x4cab9f
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
sub ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jg 0x4caa07
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_language_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x14]
sub eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x14], 0
je 0x4ca9aa
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
shl eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jg 0x4ca97b
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
shr edx, 3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
add ecx, edx
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0xc], ecx
jmp 0x4ca989
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
shl ecx, 1
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
push eax
call fcn.004cb651
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
jmp 0x4ca9b4
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jne 0x4ca9ca
push 0x5451e0
call fcn.004c2d20
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [sym.stub.exe_language_scanner_globals_id]
mov ecx, dword [ecx + eax*4 - 4]
mov dword [ecx + 0x14], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
sub ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x4ca90f
cmp dword [ebp - 0x18], 0x2000
jle 0x4caa17
mov dword [ebp - 0x18], 0x2000
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [edx]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 1
jne 0x4caa74
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
mov dword [ebp - 0x28], eax
jmp 0x4cab39
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 2
jne 0x4caacf
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_language_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 4]
add eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x4cab33
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_language_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ecx]
xor eax, eax
mov al, byte [edx]
cmp eax, 5
jne 0x4cab26
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 4]
add ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
push ecx
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x30], eax
jmp 0x4cab2d
mov dword [ebp - 0x30], 0xffffffff
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_language_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x24], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
cmp dword [eax + 0x24], 0
jge 0x4cab6f
push 0x54520c
call fcn.004c2d20
add esp, 4
xor ecx, ecx
test ecx, ecx
jne 0x4caa17
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [sym.stub.exe_language_scanner_globals_id]
mov ecx, dword [ecx + eax*4 - 4]
mov eax, dword [ecx + 0x10]
mov ecx, dword [edx + 0x24]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
cmp dword [edx + 0x24], 0
jne 0x4cac14
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x38]
jne 0x4cabf2
mov dword [ebp - 0x10], 1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax]
push ecx
call fcn.004caf09
add esp, 8
jmp 0x4cac12
mov dword [ebp - 0x10], 2
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [edx + 0x10]
mov dword [eax + 0x20], 2
jmp 0x4cac1b
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_language_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ecx + 0x24]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [sym.stub.exe_language_scanner_globals_id]
mov ecx, dword [ecx + eax*4 - 4]
mov dword [ecx + 0x24], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [edx + ecx*4 - 4]
mov eax, dword [eax + 4]
mov ecx, dword [edx + 0x24]
mov byte [eax + ecx], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [sym.stub.exe_language_scanner_globals_id]
mov edx, dword [edx + ecx*4 - 4]
mov ecx, dword [edx + 0x24]
mov edx, dword [eax + 4]
mov byte [edx + ecx + 1], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [sym.stub.exe_language_scanner_globals_id]
mov eax, dword [eax + edx*4 - 4]
mov ecx, dword [ecx + 4]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret