Function at 0x10020640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
push edi
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x101e905c
call fcn.1019d101
cmp dword [ebp + 8], 0
je 0x10020671
cmp dword [ebp + 0xc], 0
jne 0x10020696
mov eax, dword [0x101d0010]
add eax, 1
mov esi, esp
push eax
push str.C:Users_runneradminDownloadshpp_leak_rework_main_srchpp6_cs16_2hpp_cs16hppincludesImGuiimgui.cpp
push str.filename__file_open_mode
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
cmp esi, esp
call fcn.1019d0de
cmp dword [ebp + 0x10], 0
je 0x100206a5
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10020820
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100206c5
xor eax, eax
jmp 0x10020805
mov esi, esp
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
cmp esi, esp
call fcn.1019d0de
test eax, eax
jne 0x10020720
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
cmp esi, esp
call fcn.1019d0de
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x10020720
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
cmp esi, esp
call fcn.1019d0de
test eax, eax
je 0x1002073d
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp esi, esp
call fcn.1019d0de
xor eax, eax
jmp 0x10020805
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp + 0x14]
push eax
call fcn.10026370
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10020778
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp esi, esp
call fcn.1019d0de
xor eax, eax
jmp 0x10020805
mov esi, esp
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp esi, esp
call fcn.1019d0de
cmp eax, dword [ebp - 0x20]
je 0x100207c3
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp esi, esp
call fcn.1019d0de
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10026400
add esp, 4
xor eax, eax
jmp 0x10020805
cmp dword [ebp + 0x14], 0
jle 0x100207de
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x20]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp esi, esp
call fcn.1019d0de
cmp dword [ebp + 0x10], 0
je 0x10020802
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
add esp, 0xf0
cmp ebp, esp
call fcn.1019d0de
mov esp, ebp
pop ebp
ret