Function at 0x45fbc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x40
call esi
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x45fbe7
pop esi
lea eax, [ebx + 0x66]
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0x40
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
lea eax, [ebx + 0x1c]
push eax
call fcn.0045fb10
lea eax, [ebx + 0xc]
push eax
call fcn.0045fb10
add esp, 0x14
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x45fcd7
push 0x619cb0
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x45fc40
mov dword [ebp - 4], 0x65
jmp 0x45fcfc
push 2
push 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x45fc75
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [ebp - 4], 0xc
jmp 0x45fcfc
lea eax, [edi + 1]
push eax
call esi
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x45fc92
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
jmp 0x45fcf5
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push dword [ebp - 4]
push edi
push 1
push dword [ebx]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x20
mov eax, dword [ebx]
push ebx
push dword [ebp + 8]
mov dword [ebx + 4], eax
call fcn.00460b70
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x45fce5
push 0x619cd6
jmp 0x45fce6
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x45fcbf
mov dword [ebp - 4], 0x66
mov eax, dword [ebx]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x45fd0e
push eax
call edi
add esp, 4
lea eax, [ebx + 0x1c]
push eax
call fcn.0045fad0
lea eax, [ebx + 0xc]
push eax
call fcn.0045fad0
mov ebx, dword [ebx + 0x30]
add esp, 8
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x45fdaf
mov eax, dword [ebx]
test eax, eax
je 0x45fd43
push eax
call edi
add esp, 4
mov dword [ebx], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x45fd57
push eax
call edi
add esp, 4
mov dword [ebx + 8], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x45fd6b
push eax
call edi
add esp, 4
mov dword [ebx + 4], 0
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x45fd9d
mov eax, dword [esi]
mov ebx, dword [esi + 8]
test eax, eax
je 0x45fd81
push eax
call edi
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x45fd8e
push eax
call edi
add esp, 4
push esi
call edi
add esp, 4
mov esi, ebx
test ebx, ebx
jne 0x45fd72
mov ebx, dword [ebp - 8]
mov esi, dword [ebx + 0x10]
push ebx
call edi
add esp, 4
mov dword [ebp - 8], esi
mov ebx, esi
test esi, esi
jne 0x45fd31
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret