Function at 0x436890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x457664]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x128], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test ecx, ecx
je 0x436b02
cmp dword [ebp + 0xc], 0
jbe 0x436b02
test edi, edi
je 0x436b02
test eax, eax
je 0x436b02
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xe352d1e3
push eax
mov dword [ebp - 0x10], 0xd146efee
call fcn.004201b0
mov esi, eax
lea eax, [ebp - 0x118]
push esi
push edi
push eax
call fcn.0041e4c0
push esi
cmp eax, 1
je 0x43691a
call fcn.0041fc30
jmp 0x436b02
call fcn.0041fc30
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push dword [ebp - 0x118]
call esi
push dword [ebp - 0x118]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push dword [ebp - 0x118]
lea edi, [eax + 1]
mov dword [ebp - 0x11c], edi
call esi
add esp, 0x1c
cmp edi, 0xfa000
jbe 0x43696e
push dword [ebp - 0x118]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x436aff
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x436b02
push dword [ebp - 0x118]
dec edi
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [ebp - 0x118]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [ebp - 0x11c]
add esp, 0x14
mov byte [eax + ebx - 1], 0
cmp esi, edi
jne 0x436af8
push 0xff
lea eax, [ebp - 0x114]
mov dword [ebp - 0xc], 0xe454e3c9
push 0
push eax
mov word [ebp - 8], 0xef71
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], 0
push ebx
call fcn.0043b210
mov edi, eax
mov esi, edi
test edi, edi
je 0x436af8
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.0041fef0
push dword [ebp - 0x128]
lea eax, [ebp - 0x114]
push 0xff
push eax
call fcn.0041ebf0
test eax, eax
je 0x436af8
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
add esp, 0xc
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x436a8c
nop dword [eax]
push esi
call fcn.0043b1d0
test eax, eax
je 0x436aee
push dword [ebp - 0x11c]
push esi
call fcn.0043b1b0
mov esi, eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
add esp, 0xc
mov dword [ebp - 0x11c], eax
test eax, eax
jne 0x436a50
push esi
call fcn.0043b1f0
test eax, eax
je 0x436aee
test esi, esi
je 0x436ac2
push dword [ebp + 0xc]
push 0
push dword [ebp - 0x124]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [esi + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x124]
call fcn.0041ebf0
test eax, eax
je 0x436aee
push edi
call fcn.0043b130
test ebx, ebx
je 0x436ad6
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441849
mov esp, ebp
pop ebp
ret 0x10
push edi
call fcn.0043b130
test ebx, ebx
je 0x436b02
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441849
mov esp, ebp
pop ebp
ret 0x10