Function at 0x455370
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 0x455397
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.004578a0
lea eax, [ebx + 0xc]
push eax
call fcn.004578a0
add esp, 0x14
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x455487
push 0x4de610
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 0x4553f0
mov dword [ebp - 4], 0x65
jmp 0x4554ac
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 0x455425
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 0x4554ac
lea eax, [edi + 1]
push eax
call esi
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x455442
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
jmp 0x4554a5
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.00456290
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x455495
push 0x4dcf03
jmp 0x455496
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 0x45546f
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 0x4554be
push eax
call edi
add esp, 4
lea eax, [ebx + 0x1c]
push eax
call fcn.00457860
lea eax, [ebx + 0xc]
push eax
call fcn.00457860
mov ebx, dword [ebx + 0x30]
add esp, 8
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x45555f
mov eax, dword [ebx]
test eax, eax
je 0x4554f3
push eax
call edi
add esp, 4
mov dword [ebx], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x455507
push eax
call edi
add esp, 4
mov dword [ebx + 8], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x45551b
push eax
call edi
add esp, 4
mov dword [ebx + 4], 0
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x45554d
mov eax, dword [esi]
mov ebx, dword [esi + 8]
test eax, eax
je 0x455531
push eax
call edi
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x45553e
push eax
call edi
add esp, 4
push esi
call edi
add esp, 4
mov esi, ebx
test ebx, ebx
jne 0x455522
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 0x4554e1
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