Function at 0x444e80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f23e7
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x537008]
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, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2bc], esi
cmp dword [edi + 0x10], 0
je 0x445365
mov ecx, edi
call fcn.004a4e30
test al, al
je 0x445365
xor eax, eax
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x268]
push eax
mov edx, esi
mov ecx, edi
call fcn.00445580
add esp, 4
test al, al
je 0x444fac
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x444f2b
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
je 0x444f42
mov byte [ebp - 0x2b5], 0
jmp 0x44534b
xorps xmm0, xmm0
lea ecx, [ebp - 0x22c]
movups xmmword [ebp - 0x22c], xmm0
call fcn.00442880
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x444f77
cmp dword [ebp - 0x220], 0
jne 0x444f77
lea ecx, [ebp - 0x220]
push ecx
call eax
mov ecx, esi
call fcn.004a61c0
test al, al
je 0x444f9d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00442a40
mov byte [ebp - 0x2b5], 1
jmp 0x44534b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00442a40
push 0
mov edx, edi
lea ecx, [ebp - 0x250]
call fcn.004ab710
mov byte [ebp - 4], 2
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x23c], 0x10
push 0x510214
cmovae eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x444ff3
mov byte [ebp - 0x2b5], al
jmp 0x4452f2
push 0
push 0
push edi
mov byte [ebp - 0x2b5], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x4452e8
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea eax, [ebp - 0x2b4]
push edi
push 0x4c
push 1
push eax
call esi
add esp, 0x10
cmp eax, 0x4c
jne 0x4452e8
cmp dword [ebp - 0x2b4], eax
jne 0x4452e8
test byte [ebp - 0x2a0], 1
je 0x4451e3
push edi
push 1
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push 2
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x4452e1
mov eax, dword [ebp - 0x21c]
test ax, ax
je 0x4451e3
push ecx
movzx eax, ax
lea ecx, [ebp - 0x228]
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
push eax
movq qword [ebp - 0x228], xmm0
call fcn.00445770
mov byte [ebp - 4], 3
movzx eax, word [ebp - 0x21c]
mov esi, dword [ebp - 0x228]
push edi
push 1
push eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
call eax
add esp, 0x10
cmp eax, 1
je 0x44512e
mov byte [ebp - 0x2b5], 0
mov byte [ebp - 4], 2
test esi, esi
je 0x4452e8
mov ecx, dword [ebp - 0x220]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x445101
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x445101
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.004e64bc
add esp, 8
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
jmp 0x4452e8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x445187
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x445160
sub edx, ecx
lea eax, [ebp - 0x218]
mov ecx, dword [ebp - 0x2bc]
sar edx, 1
push edx
push eax
call fcn.0040a390
jmp 0x4450cd
mov byte [ebp - 4], 2
test esi, esi
je 0x4451dd
mov ecx, dword [ebp - 0x220]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x4451b5
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4450fb
push ecx
push esi
call fcn.004e64bc
add esp, 8
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push edi
push 1
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0
push 4
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x4452e1
push eax
push 0xc
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x4452e1
push edi
push 1
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push 4
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x4452e1
mov eax, dword [ebp - 0x21c]
cmp eax, 0x14
jb 0x4452e1
push 1
add eax, 0xffffffec
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x4452e1
mov esi, dword [ebp - 0x238]
sub esi, dword [ebp - 0x21c]
je 0x4452e1
cmp esi, 0x104
ja 0x4452e1
lea eax, [esi + 1]
push eax
call fcn.004e6ac4
push edi
push 1
push esi
mov dword [ebp - 0x2c0], eax
mov byte [eax + esi], 0
push eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
call eax
mov esi, dword [ebp - 0x2c0]
add esp, 0x14
cmp eax, 1
jne 0x4452d2
mov edx, esi
lea ecx, [ebp - 0x234]
call fcn.004ab1b0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2bc]
push eax
call fcn.0040a090
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
call fcn.0040a320
test esi, esi
je 0x4452e8
push esi
call fcn.004e6abf
add esp, 4
jmp 0x4452e8
mov byte [ebp - 0x2b5], 0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x23c]
cmp edx, 0x10
jb 0x445330
mov ecx, dword [ebp - 0x250]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x445326
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4450fb
push edx
push ecx
call fcn.004e64bc
add esp, 8
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0xf
mov byte [ebp - 0x250], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.0040a320
mov al, byte [ebp - 0x2b5]
jmp 0x445367
xor al, al
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.004e647b
mov esp, ebp
pop ebp
ret 8