Function at 0x437770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444f92
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x474630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x54], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
cmp dword [ebp + 0x24], 0x10
lea eax, [ebp + 0x10]
push 0x447bcc
cmovae eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x24], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov eax, dword [ebp - 0x24]
add esp, 0xc
test eax, eax
jne 0x4377e9
mov byte [ebp - 0x19], al
jmp 0x437e10
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push eax
push 1
lea eax, [esi + 0x18]
mov dword [ebp - 0x18], 0xffffffff
push 0x24
push eax
mov dword [ebp - 0x14], 0xffffffff
call edi
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push 1
push 8
push eax
call edi
push dword [ebp - 0x24]
lea eax, [esi + 0x3c]
push 1
push 8
push eax
call edi
add esp, 0x30
xor eax, eax
test eax, eax
je 0x437837
cmp byte [ebp + eax - 0x18], 0
jne 0x437837
mov byte [ebp + eax - 0x18], 0xff
cmp byte [ebp + eax - 0x18], 0xff
je 0x437840
inc dword [esi]
cmp byte [esi + eax + 0x3c], 0xff
je 0x43784a
inc dword [esi + 4]
inc eax
cmp eax, 8
jl 0x437827
push 0xc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.00441d78
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x30], eax
push 0x10
mov byte [ebp - 4], 1
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
call fcn.00441d78
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
push eax
push 0x10
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x6c], 8
mov dword [ebp - 0x88], 0x3f800000
call fcn.00438760
mov byte [ebp - 4], 4
xor esi, esi
nop dword [eax]
nop word [eax + eax]
movzx eax, byte [ebp + esi - 0x18]
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00435930
lea ecx, [ebp - 0x88]
mov eax, dword [eax]
inc dword [eax + 0xc]
movzx eax, byte [ebp + esi - 0x18]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00435930
mov eax, dword [eax]
cmp dword [eax + 0xc], 1
jle 0x43798d
mov al, byte [ebp + esi - 0x18]
cmp al, 0xff
je 0x43798d
cmp dword [ebp - 0x2c], 0x15555555
mov edi, dword [ebp - 0x30]
movzx eax, al
mov dword [ebp - 0x20], eax
je 0x437e66
lea eax, [ebp - 0x30]
mov dword [ebp - 0x40], eax
push 0xc
mov byte [ebp - 4], 5
mov dword [ebp - 0x3c], 0
call fcn.00441d78
mov ecx, dword [ebp - 0x20]
add esp, 4
mov byte [ebp - 4], 4
mov dword [ebp - 0x3c], 0
mov dword [eax + 8], ecx
inc dword [ebp - 0x2c]
mov ecx, dword [edi + 4]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [edi + 4], eax
mov dword [ecx], eax
inc esi
cmp esi, 8
jl 0x4378f0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.00435e20
push 0x10000
call fcn.00441d78
push 0x10000
mov esi, eax
push 0xff
push esi
call sub.VCRUNTIME140.dll_memset
movzx eax, byte [ebp - 0x18]
add esp, 0x10
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], esi
push eax
lea eax, [ebp - 0x68]
lea ecx, [edi + 8]
push eax
mov dword [ebp - 0x34], ecx
call fcn.00435ba0
mov eax, dword [edi]
mov esi, 1
xor ecx, ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x48], ecx
cmp eax, esi
jle 0x437bba
nop dword [eax]
mov edi, dword [ebp - 0x30]
mov eax, edi
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x50], edi
cmp eax, dword [edi]
je 0x437ac3
movzx ecx, byte [ebp + esi - 0x18]
lea edx, [eax + 4]
mov eax, dword [edx]
mov dword [ebp - 0x20], edx
cmp ecx, dword [eax + 8]
jne 0x437ab8
inc dword [ebp - 0x48]
xor ecx, ecx
mov byte [ebp + esi - 0x18], 0xff
lea esi, [ebp - 0x5c]
mov eax, dword [edx]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], esi
mov esi, dword [edi]
mov byte [ebp - 0x19], 1
cmp esi, edi
je 0x437a8d
nop
mov ecx, dword [esi + 8]
mov edi, dword [esi]
cmp ecx, dword [eax + 8]
jne 0x437a78
dec dword [edx + 4]
mov edx, dword [esi]
mov dword [esi], 0
mov ecx, dword [esi + 4]
mov dword [ecx], edx
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x58]
mov dword [ecx], esi
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x58], esi
mov esi, edi
cmp edi, dword [ebp - 0x50]
jne 0x437a50
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], edi
mov eax, dword [eax]
test ecx, ecx
je 0x437aaf
mov esi, dword [ecx]
push 0xc
push ecx
call fcn.00441da8
add esp, 8
mov ecx, esi
test esi, esi
jne 0x437a91
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x50], edi
mov eax, dword [eax]
cmp dword [ebp - 0x2c], 0
je 0x437ac0
mov esi, dword [ebp - 0x28]
cmp eax, dword [edi]
jne 0x437a14
mov esi, dword [ebp - 0x28]
push 0x10000
call fcn.00441d78
mov edi, eax
mov dword [edi], 0
push dword [ebp - 0x24]
push 1
push 0x10000
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x14
cmp byte [ebp - 0x19], 0
jne 0x437b94
movzx eax, byte [ebp + esi - 0x18]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x3c], edi
push eax
call fcn.004152c0
mov ecx, dword [eax + 8]
movq xmm0, qword [eax]
movq qword [ebp - 0x94], xmm0
cmp byte [ecx + 0xd], 0
jne 0x437b2e
mov eax, dword [ebp - 0x40]
cmp eax, dword [ecx + 0x10]
jge 0x437ba6
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], 0xaaaaaaa
je 0x437e70
mov esi, dword [eax]
mov dword [ebp - 0x68], eax
push 0x18
mov byte [ebp - 4], 6
mov dword [ebp - 0x64], 0
call fcn.00441d78
mov ecx, dword [ebp - 0x40]
add esp, 4
mov byte [ebp - 4], 1
mov dword [ebp - 0x64], 0
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x34]
push eax
push dword [ebp - 0x90]
mov dword [eax + 0x14], edi
push dword [ebp - 0x94]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.0040c8a0
mov esi, dword [ebp - 0x28]
jmp 0x437ba6
test edi, edi
je 0x437ba6
push 0x10000
push edi
call fcn.00441da8
add esp, 8
mov edi, dword [ebp - 0x54]
inc esi
mov dword [ebp - 0x28], esi
mov eax, dword [edi]
cmp esi, eax
jl 0x437a00
mov ecx, dword [ebp - 0x48]
push dword [ebp - 0x24]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub eax, ecx
push 1
mov dword [edi], eax
lea eax, [edi + 0x44]
push 0x20402
push eax
call esi
push dword [ebp - 0x24]
lea eax, [edi + 0x20446]
push 1
push 0x30000
push eax
call esi
push dword [ebp - 0x24]
lea eax, [edi + 0x50446]
push 1
push 0x10000
push eax
call esi
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x34
mov ecx, edi
call fcn.00437310
test al, al
je 0x437dd3
mov ecx, edi
call fcn.00437670
push dword [ebp - 0x44]
mov ecx, edi
call fcn.004368b0
test al, al
je 0x437dd3
mov esi, dword [ebp - 0x38]
mov ecx, edi
push esi
push dword [ebp - 0x44]
call fcn.00437fe0
test al, al
je 0x437dd3
push dword [edi + 0x24]
lea ecx, [esi + 0x98]
push dword [edi + 0x20]
call fcn.00432680
push eax
push esi
push dword [ebp - 0x44]
mov ecx, edi
call fcn.00436190
test al, al
je 0x437dd3
mov esi, dword [edi + 0x60948]
test esi, esi
je 0x437c8f
mov ecx, esi
call fcn.0040f750
push 0x20
push esi
call fcn.00441da8
add esp, 8
mov dword [edi + 0x60948], 0
xor eax, eax
mov dword [ebp - 0x34], 8
mov dword [ebp - 0x28], eax
add edi, 0x60448
mov dword [ebp - 0x48], eax
nop dword [eax]
nop dword [eax + eax]
mov dword [ebp - 0x20], 8
mov ecx, edi
call fcn.00434d80
fstp dword [ebp - 0x38]
cvttss2si esi, dword [ebp - 0x38]
mov ecx, edi
call fcn.00434d70
mov edx, dword [ebp - 0x28]
mov eax, esi
test edx, edx
cmovne eax, edx
mov edx, esi
cmp eax, esi
mov esi, dword [ebp - 0x48]
fstp dword [ebp - 0x38]
cvttss2si ecx, dword [ebp - 0x38]
cmovle edx, eax
test esi, esi
mov dword [ebp - 0x28], edx
mov eax, ecx
cmovne eax, esi
mov esi, ecx
cmp eax, ecx
cmovge esi, eax
add edi, 0x14
sub dword [ebp - 0x20], 1
mov dword [ebp - 0x48], esi
jne 0x437cb7
sub dword [ebp - 0x34], 1
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x48], esi
jne 0x437cb0
push 0x20
call fcn.00441d78
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x437d32
mov ecx, eax
call fcn.0040f730
mov edi, eax
jmp 0x437d34
xor edi, edi
mov ecx, dword [ebp - 0x54]
mov byte [ebp - 4], 1
mov dword [ecx + 0x60948], edi
test edi, edi
je 0x437dd3
mov edx, dword [ecx + 0x20]
sub esp, 0x10
mov ecx, dword [ecx + 0x24]
mov eax, esp
movaps xmm0, xmmword [0x4535b0]
sub esp, 0x18
shl ecx, 0xd
shl edx, 0xd
movups xmmword [eax], xmm0
lea eax, [ecx + 0x2000]
movd xmm0, eax
lea eax, [edx + 0x2000]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x14], xmm0
movd xmm0, ecx
mov ecx, edi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x10], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xc], xmm0
movd xmm0, dword [ebp - 0x28]
cvtdq2ps xmm0, xmm0
movss dword [esp + 8], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push dword [ebp - 0x44]
call fcn.0040f820
mov byte [ebp - 0x19], 1
test al, al
jne 0x437dd7
mov byte [ebp - 0x19], 0
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x437e03
nop dword [eax]
mov esi, dword [eax]
push 0xc
push eax
call fcn.00441da8
add esp, 8
mov eax, esi
test esi, esi
jne 0x437df0
push 0xc
push dword [ebp - 0x30]
call fcn.00441da8
add esp, 8
mov ecx, dword [ebp + 0x24]
cmp ecx, 0x10
jb 0x437e46
mov edx, dword [ebp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x437e3c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x437e3c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00441da8
add esp, 8
mov al, byte [ebp - 0x19]
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.00442210
mov esp, ebp
pop ebp
ret 0x20
push str.list_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
call fcn.0040cab0
int3