Function at 0x55bf20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea edx, [ecx + eax*4]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x24]
sub esp, 8
push ebx
mov ebx, dword [esi + 0x1c]
lea ebx, [ecx + ebx + 1]
push edi
mov edi, dword [esi + 0x50]
cmp eax, ebx
jbe 0x55bf51
push str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.00549420
mov edx, dword [edx]
sub eax, edi
cmp dword [edx + 0x28], 0
jne 0x55bf69
dec eax
neg eax
sbb eax, eax
neg eax
pop edi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [eax - 1]
mov dword [ebp - 4], edx
test edx, edx
jle 0x55bf80
sub edi, ecx
mov eax, edx
mov bl, byte [edi + ecx]
mov byte [ecx], bl
inc ecx
dec eax
jne 0x55bf77
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea edi, [eax + ecx*4]
mov ecx, dword [edi]
mov ebx, 2
cmp dword [ecx + 0x2c], ebx
jne 0x55bfa4
xor eax, eax
mov dword [esi + 0x1c], eax
mov ecx, dword [edi]
mov dword [ecx + 0x10], eax
jmp 0x55c182
mov edi, dword [ecx + 0xc]
sub edi, edx
dec edi
test edi, edi
jg 0x55c03b
mov ebx, dword [esi + 0x24]
neg eax
sbb eax, eax
and eax, ecx
mov edi, eax
mov ecx, dword [edi + 4]
sub ebx, ecx
cmp dword [edi + 0x14], 0
je 0x55c00d
mov eax, dword [edi + 0xc]
lea edx, [eax + eax]
test edx, edx
jg 0x55bfd9
mov edx, eax
shr edx, 3
add edx, eax
mov eax, edx
add eax, 2
mov dword [edi + 0xc], edx
push eax
test ecx, ecx
je 0x55bff7
push ecx
call sym.postgres.exe_repalloc
mov edx, dword [ebp - 4]
add esp, 8
mov dword [edi + 4], eax
jmp 0x55c014
mov eax, dword [sym.postgres.exe_CurrentMemoryContext]
push eax
call sym.postgres.exe_MemoryContextAlloc
mov edx, dword [ebp - 4]
add esp, 8
mov dword [edi + 4], eax
jmp 0x55c014
mov dword [edi + 4], 0
mov edi, dword [edi + 4]
test edi, edi
je 0x55c0cb
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
add edi, ebx
mov dword [esi + 0x24], edi
mov ecx, dword [eax + ecx*4]
mov edi, dword [ecx + 0xc]
sub edi, edx
dec edi
test edi, edi
jle 0x55bfb2
cmp edi, 0x2000
jle 0x55c048
mov edi, 0x2000
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x18], 0
je 0x55c0e0
xor ebx, ebx
test edi, edi
je 0x55c0d8
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.MSVCR100.dll_getc]
add esp, 4
cmp eax, 0xffffffff
je 0x55c091
cmp eax, 0xa
je 0x55c096
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
mov edx, dword [ecx + edx*4]
mov ecx, dword [edx + 4]
mov edx, dword [ebp - 4]
add ecx, ebx
inc ebx
mov byte [ecx + edx], al
cmp ebx, edi
jb 0x55c061
cmp eax, 0xa
jne 0x55c0ab
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
mov ecx, dword [edx + ecx*4]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp - 4]
add edx, ebx
mov byte [edx + ecx], al
inc ebx
cmp eax, 0xffffffff
jne 0x55c0d5
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.MSVCR100.dll_ferror]
add esp, 4
test eax, eax
je 0x55c0d5
push str.input_in_flex_scanner_failed
call fcn.00549420
push str.fatal_error___scanner_input_buffer_overflow
call fcn.00549420
mov edx, dword [ebp - 4]
mov dword [esi + 0x1c], ebx
jmp 0x55c16c
mov ebx, dword [sym.imp.MSVCR100.dll__errno]
call ebx
mov dword [eax], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [eax + 4]
add ecx, dword [ebp - 4]
push edi
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x55c169
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.MSVCR100.dll_ferror]
add esp, 4
test eax, eax
je 0x55c169
call ebx
cmp dword [eax], 0x2714
jne 0x55c0c1
call ebx
mov dword [eax], 0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.MSVCR100.dll_clearerr]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 4]
push edi
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x14
mov dword [esi + 0x1c], eax
test eax, eax
je 0x55c115
mov edx, dword [ebp - 4]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0x10], ecx
mov ebx, 2
xor eax, eax
cmp dword [esi + 0x1c], eax
jne 0x55c1b5
cmp edx, eax
jne 0x55c1a4
mov edx, dword [esi + 4]
push esi
push edx
mov dword [ebp - 8], 1
call sym.postgres.exe_core_yyrestart
mov edx, dword [ebp - 4]
add esp, 8
jmp 0x55c1b8
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 8], ebx
mov dword [eax + 0x2c], ebx
jmp 0x55c1b8
mov dword [ebp - 8], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov edi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esi + 0x1c]
lea ebx, [ecx + edx]
cmp ebx, dword [edi + 0xc]
jbe 0x55c221
mov edi, dword [edi + 4]
mov eax, ecx
sar eax, 1
add eax, ecx
add eax, edx
push eax
test edi, edi
je 0x55c1e7
push edi
call sym.postgres.exe_repalloc
jmp 0x55c1f3
mov ecx, dword [sym.postgres.exe_CurrentMemoryContext]
push ecx
call sym.postgres.exe_MemoryContextAlloc
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
mov edx, dword [ecx + edx*4]
mov dword [edx + 4], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
add esp, 8
cmp dword [edx + 4], 0
jne 0x55c21e
push str.out_of_dynamic_memory_in_yy_get_next_buffer__
call fcn.00549420
mov edx, dword [ebp - 4]
add dword [esi + 0x1c], edx
mov eax, dword [eax]
mov edx, dword [eax + 4]
mov ecx, dword [esi + 0x1c]
mov byte [ecx + edx], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx + 4]
mov ecx, dword [esi + 0x1c]
mov byte [eax + ecx + 1], 0
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 0x50], edx
pop ebx
mov esp, ebp
pop ebp
ret