Function at 0x446310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f58c7
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x53b008]
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 0x4467f5
mov ecx, edi
call fcn.004a8790
test al, al
je 0x4467f5
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.00446a10
add esp, 4
test al, al
je 0x44643c
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4463bb
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
je 0x4463d2
mov byte [ebp - 0x2b5], 0
jmp 0x4467db
xorps xmm0, xmm0
lea ecx, [ebp - 0x22c]
movups xmmword [ebp - 0x22c], xmm0
call fcn.00443d00
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x446407
cmp dword [ebp - 0x220], 0
jne 0x446407
lea ecx, [ebp - 0x220]
push ecx
call eax
mov ecx, esi
call fcn.004a9b20
test al, al
je 0x44642d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00443ec0
mov byte [ebp - 0x2b5], 1
jmp 0x4467db
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00443ec0
push 0
mov edx, edi
lea ecx, [ebp - 0x250]
call fcn.004af070
mov byte [ebp - 4], 2
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x23c], 0x10
push 0x513470
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 0x446483
mov byte [ebp - 0x2b5], al
jmp 0x446782
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 0x446778
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 0x446778
cmp dword [ebp - 0x2b4], eax
jne 0x446778
test byte [ebp - 0x2a0], 1
je 0x446673
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 0x446771
mov eax, dword [ebp - 0x21c]
test ax, ax
je 0x446673
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.00446c00
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 0x4465be
mov byte [ebp - 0x2b5], 0
mov byte [ebp - 4], 2
test esi, esi
je 0x446778
mov ecx, dword [ebp - 0x220]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x446591
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x446591
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.004e96c2
add esp, 8
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
jmp 0x446778
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 0x446617
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4465f0
sub edx, ecx
lea eax, [ebp - 0x218]
mov ecx, dword [ebp - 0x2bc]
sar edx, 1
push edx
push eax
call fcn.0040b290
jmp 0x44655d
mov byte [ebp - 4], 2
test esi, esi
je 0x44666d
mov ecx, dword [ebp - 0x220]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x446645
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44658b
push ecx
push esi
call fcn.004e96c2
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 0x446771
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 0x446771
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 0x446771
mov eax, dword [ebp - 0x21c]
cmp eax, 0x14
jb 0x446771
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 0x446771
mov esi, dword [ebp - 0x238]
sub esi, dword [ebp - 0x21c]
je 0x446771
cmp esi, 0x104
ja 0x446771
lea eax, [esi + 1]
push eax
call fcn.004e9cca
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 0x446762
mov edx, esi
lea ecx, [ebp - 0x234]
call fcn.004aeb10
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2bc]
push eax
call fcn.0040a680
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
call fcn.0040b220
test esi, esi
je 0x446778
push esi
call fcn.004e9cc5
add esp, 4
jmp 0x446778
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 0x4467c0
mov ecx, dword [ebp - 0x250]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4467b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44658b
push edx
push ecx
call fcn.004e96c2
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.0040b220
mov al, byte [ebp - 0x2b5]
jmp 0x4467f7
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.004e9681
mov esp, ebp
pop ebp
ret 8