Function at 0x430150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4679ab
mov eax, dword fs:[0]
push eax
mov eax, 0x10050
call fcn.00462800
mov eax, dword [0x48700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1005c], esi
mov dword [ebp - 0x1004c], esi
mov dword [ebp - 0x1004c], esi
mov dword [ebp - 0x10018], 0
mov dword [ebp - 0x10014], 0xf
mov byte [ebp - 0x10028], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10040]
push 2
xor eax, eax
mov dword [ebp - 0x10030], 0
push 0x475344
mov dword [ebp - 0x1002c], 7
mov word [ebp - 0x10040], ax
call fcn.00409b10
cmp dword [ebp - 0x1002c], 8
lea eax, [ebp - 0x10040]
cmovae eax, dword [ebp - 0x10040]
cmp dword [edi + 0x14], 8
jb 0x430204
mov edi, dword [edi]
push 0x40
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfsopen]
mov edx, dword [ebp - 0x1002c]
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x10048], edi
cmp edx, 8
jb 0x43025b
mov ecx, dword [ebp - 0x10040]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x430251
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x430251
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00461242
add esp, 8
xor eax, eax
mov dword [ebp - 0x10030], 0
mov dword [ebp - 0x1002c], 7
mov word [ebp - 0x10040], ax
test edi, edi
jne 0x43029a
movups xmm0, xmmword [ebp - 0x10028]
mov eax, esi
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x10018]
movq qword [esi + 0x10], xmm0
jmp 0x430403
push edi
push 0x10000
lea eax, [ebp - 0x10010]
xor esi, esi
push 1
push eax
mov dword [ebp - 0x10050], esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x430389
xor edx, edx
mov eax, esi
mov ecx, edi
not eax
cmp eax, edi
mov dword [ebp - 0x1004c], eax
cmovb ecx, eax
mov eax, dword [ebp - 0x10014]
sub eax, edx
mov dword [ebp - 0x10054], ecx
push ecx
cmp ecx, eax
ja 0x43032b
cmp dword [ebp - 0x10014], 0x10
lea eax, [ecx + edx]
mov dword [ebp - 0x10018], eax
lea esi, [ebp - 0x10028]
cmovae esi, dword [ebp - 0x10028]
lea eax, [ebp - 0x10010]
add esi, edx
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x10054]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x10050]
jmp 0x43034b
lea eax, [ebp - 0x10010]
mov byte [ebp - 0x10058], 0
push eax
push dword [ebp - 0x10058]
push ecx
lea ecx, [ebp - 0x10028]
call fcn.00409d40
cmp dword [ebp - 0x1004c], edi
jb 0x4303a6
push dword [ebp - 0x10048]
lea eax, [ebp - 0x10010]
add esi, edi
push 0x10000
push 1
push eax
mov dword [ebp - 0x10050], esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x430389
mov edx, dword [ebp - 0x10018]
jmp 0x4302c6
mov esi, dword [ebp - 0x10048]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
jne 0x4303ac
mov byte [ebp - 0x10041], 1
jmp 0x4303b3
mov esi, dword [ebp - 0x10048]
mov byte [ebp - 0x10041], 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp byte [ebp - 0x10041], 0
jne 0x4303d8
push 0
push 0x46ce34
lea ecx, [ebp - 0x10028]
call fcn.00403560
mov eax, dword [ebp - 0x1005c]
movups xmm0, xmmword [ebp - 0x10028]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x10018]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461231
mov esp, ebp
pop ebp
ret