Function at 0x4dd24d
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_ini_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_ini_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_ini_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_ini_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_ini_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 0x4dd2cc
push str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.004dded3
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_ini_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [edx + 0x10]
cmp dword [eax + 0x1c], 0
jne 0x4dd320
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_ini_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_ini_scanner_globals_id]
mov eax, dword [eax + edx*4 - 4]
mov ecx, dword [ecx + 0x14]
sub ecx, dword [eax + 0xc]
cmp ecx, 1
jne 0x4dd316
mov eax, 1
jmp 0x4dd788
mov eax, 2
jmp 0x4dd788
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_ini_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_ini_scanner_globals_id]
mov ecx, dword [ecx + eax*4 - 4]
mov edx, dword [edx + 0x14]
sub edx, dword [ecx + 0xc]
sub edx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], 0
jmp 0x4dd35b
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 4]
jge 0x4dd381
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x4dd352
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_ini_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ecx + 0x10]
cmp dword [edx + 0x20], 2
jne 0x4dd3cb
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_ini_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_ini_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ecx + 0x10]
mov dword [edx + 0x10], 0
jmp 0x4dd67a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_ini_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
sub edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jg 0x4dd4e3
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_ini_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_ini_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x14]
sub ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0
je 0x4dd485
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
shl ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jg 0x4dd456
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
shr eax, 3
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
add edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xc], edx
jmp 0x4dd464
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
shl edx, 1
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
add edx, 2
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
push ecx
call fcn.004ddf0e
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], eax
jmp 0x4dd48f
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 4], 0
jne 0x4dd4a5
push str.fatal_error___scanner_input_buffer_overflow
call fcn.004dded3
add esp, 4
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [sym.stub.exe_ini_scanner_globals_id]
mov edx, dword [edx + ecx*4 - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_ini_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
sub edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 0x18], edx
jmp 0x4dd3e9
cmp dword [ebp - 0x18], 0x2000
jle 0x4dd4f3
mov dword [ebp - 0x18], 0x2000
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_ini_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 1
jne 0x4dd54e
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_ini_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
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_ini_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
mov dword [ebp - 0x28], eax
jmp 0x4dd613
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_ini_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ecx]
xor eax, eax
mov al, byte [edx]
cmp eax, 2
jne 0x4dd5a8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_ini_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_ini_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
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x4dd60d
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_ini_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [edx]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 5
jne 0x4dd600
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_ini_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_ini_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edx
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x30], eax
jmp 0x4dd607
mov dword [ebp - 0x30], 0xffffffff
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_ini_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_ini_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
cmp dword [ecx + 0x24], 0
jge 0x4dd649
push str.input_in_flex_scanner_failed
call fcn.004dded3
add esp, 4
xor edx, edx
test edx, edx
jne 0x4dd4f3
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_ini_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [sym.stub.exe_ini_scanner_globals_id]
mov edx, dword [edx + ecx*4 - 4]
mov ecx, dword [edx + 0x10]
mov edx, dword [eax + 0x24]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_ini_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
cmp dword [eax + 0x24], 0
jne 0x4dd6dd
cmp dword [ebp - 4], 0
jne 0x4dd6bc
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_ini_scanner_globals_id]
mov edx, dword [eax + ecx*4 - 4]
mov eax, dword [edx]
push eax
call fcn.004dd99d
add esp, 8
jmp 0x4dd6db
mov dword [ebp - 0x10], 2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_ini_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ecx + 0x10]
mov dword [edx + 0x20], 2
jmp 0x4dd6e4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [sym.stub.exe_ini_scanner_globals_id]
mov eax, dword [ecx + edx*4 - 4]
mov ecx, dword [eax + 0x24]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [sym.stub.exe_ini_scanner_globals_id]
mov eax, dword [eax + edx*4 - 4]
mov dword [eax + 0x24], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_ini_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [sym.stub.exe_ini_scanner_globals_id]
mov ecx, dword [ecx + eax*4 - 4]
mov edx, dword [edx + 4]
mov eax, dword [ecx + 0x24]
mov byte [edx + eax], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [sym.stub.exe_ini_scanner_globals_id]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [sym.stub.exe_ini_scanner_globals_id]
mov ecx, dword [ecx + eax*4 - 4]
mov eax, dword [ecx + 0x24]
mov ecx, dword [edx + 4]
mov byte [ecx + eax + 1], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [sym.stub.exe_ini_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_ini_scanner_globals_id]
mov edx, dword [edx + ecx*4 - 4]
mov eax, dword [eax + 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret