Function at 0x7bf780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x87e173
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0xa5e224]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xec], edi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov edx, dword [ebp + 8]
mov dword [ebp - 0xe8], ebx
test esi, esi
je 0x7bfb43
test edx, edx
je 0x7bfb0e
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x7bfb0e
push esi
push edx
push eax
call fcn.00821cf5
add esp, 0xc
cmp eax, 0xffffffff
jne 0x7bfb45
call fcn.00807102
mov eax, dword [eax]
mov dword [edi + 4], eax
xor al, al
nop
test al, al
jne 0x7bf862
lea eax, [ebp - 0x70]
push 0x8a7570
push eax
call fcn.007373c0
add esp, 8
mov esi, eax
or ebx, 1
mov dword [ebp - 4], 0
cmp dword [0xea5818], 0
mov dword [ebp - 0xe8], ebx
je 0x7bf844
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0xea5818]
je 0x7bf844
call fcn.007423b0
jmp 0x7bf849
mov al, byte [0xa5d794]
test al, al
je 0x7bf862
push esi
call fcn.00741e40
add esp, 4
mov byte [ebp - 0xe1], 1
cmp eax, 1
jae 0x7bf869
mov byte [ebp - 0xe1], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x7bf880
lea ecx, [ebp - 0x70]
and ebx, 0xfffffffe
call fcn.00436e00
cmp byte [ebp - 0xe1], 0
je 0x7bfb09
push str.cant_read_from_file_descriptor__d
lea ecx, [ebp - 0x90]
call fcn.00436310
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
call fcn.0074abf0
test eax, eax
je 0x7bf905
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x90]
push ecx
mov ecx, eax
call fcn.0074fa90
mov esi, eax
test esi, esi
jne 0x7bf916
lea eax, [ebp - 0x90]
push eax
call fcn.00750db0
add esp, 4
mov esi, eax
call fcn.00737c40
mov dword [ebp - 0x100], eax
mov byte [ebp - 4], 4
call fcn.00737c40
mov dword [ebp - 0xfc], eax
mov byte [ebp - 4], 5
call fcn.00737c40
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xf0], 0
push str.wx.sys_error
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.00436310
push 0x8a7570
push str.wxFile::Read
push 0x14d
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srccommon_file.cpp
push 1
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 7
call fcn.004cb4d0
mov esi, eax
mov edi, dword [edi]
mov byte [ebp - 4], 8
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.004ef6c0
push 1
lea ecx, [ebp - 0x100]
mov esi, eax
call fcn.00745540
mov ecx, eax
and ecx, 9
cmp ecx, eax
je 0x7bf9f1
cmp dword [0xa5d6f8], 0
je 0x7bf9f1
push str.format_specifier_doesnt_match_argument_type
push str._argtype___wxFormatStringSpecifier_T_::value____argtype
push str.wxArgNormalizer_int_::wxArgNormalizer
push 0x1e4
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.cleanincludewx_strvararg.h
call fcn.0073ce40
add esp, 0x14
cmp byte [0xea569c], 0
je 0x7bf9f1
mov byte [0xea569c], 0
int3
lea ecx, [ebp - 0x100]
call fcn.00744ca0
push edi
push eax
push esi
call fcn.004cc880
add esp, 0xc
lea ecx, [ebp - 0xb0]
call fcn.00436e00
lea ecx, [ebp - 0xd8]
call fcn.004cb970
lea ecx, [ebp - 0x70]
call fcn.00436e00
lea ecx, [ebp - 0x100]
call fcn.00476650
push dword [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00805aaa
mov edx, dword [ebp - 0x1c]
add esp, 4
cmp edx, 8
jb 0x7bfa79
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x7bfa6f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x7bfb63
push edx
push ecx
call fcn.00800125
add esp, 8
push dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov byte [ebp - 4], 1
call fcn.00805aaa
mov edx, dword [ebp - 0x3c]
add esp, 4
cmp edx, 8
jb 0x7bfad6
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x7bfacc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x7bfb63
push edx
push ecx
call fcn.00800125
add esp, 8
xor eax, eax
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00436e00
mov edi, dword [ebp - 0xec]
mov al, 1
jmp 0x7bf800
or eax, 0xffffffff
jmp 0x7bfb45
cmp dword [0xa5d6f8], ebx
je 0x7bfb43
push 0
push str.__pBuf___0___IsOpened___
push str.wxFile::Read
push 0x147
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srccommon_file.cpp
call fcn.0073ce40
add esp, 0x14
cmp byte [0xea569c], bl
je 0x7bfb43
mov byte [0xea569c], bl
int3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00800392
mov esp, ebp
pop ebp
ret 8
call fcn.00805a59
int3