Function at 0x43ea90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7527
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x53e008]
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 0x43ef75
mov ecx, edi
call fcn.004b28f0
test al, al
je 0x43ef75
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.0043f920
add esp, 4
test al, al
je 0x43ebbc
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43eb3b
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
je 0x43eb52
mov byte [ebp - 0x2b5], 0
jmp 0x43ef5b
xorps xmm0, xmm0
lea ecx, [ebp - 0x22c]
movups xmmword [ebp - 0x22c], xmm0
call fcn.00448060
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x43eb87
cmp dword [ebp - 0x220], 0
jne 0x43eb87
lea ecx, [ebp - 0x220]
push ecx
call eax
mov ecx, esi
call fcn.004b3c70
test al, al
je 0x43ebad
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00448220
mov byte [ebp - 0x2b5], 1
jmp 0x43ef5b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00448220
push 0
mov edx, edi
lea ecx, [ebp - 0x250]
call fcn.004b8e90
mov byte [ebp - 4], 2
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x23c], 0x10
push 0x515e70
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 0x43ec03
mov byte [ebp - 0x2b5], al
jmp 0x43ef02
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 0x43eef8
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 0x43eef8
cmp dword [ebp - 0x2b4], eax
jne 0x43eef8
test byte [ebp - 0x2a0], 1
je 0x43edf3
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 0x43eef1
mov eax, dword [ebp - 0x21c]
test ax, ax
je 0x43edf3
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.0043fb10
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 0x43ed3e
mov byte [ebp - 0x2b5], 0
mov byte [ebp - 4], 2
test esi, esi
je 0x43eef8
mov ecx, dword [ebp - 0x220]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x43ed11
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43ed11
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.004ec192
add esp, 8
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
jmp 0x43eef8
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 0x43ed97
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x43ed70
sub edx, ecx
lea eax, [ebp - 0x218]
mov ecx, dword [ebp - 0x2bc]
sar edx, 1
push edx
push eax
call fcn.004037f0
jmp 0x43ecdd
mov byte [ebp - 4], 2
test esi, esi
je 0x43eded
mov ecx, dword [ebp - 0x220]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x43edc5
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43ed0b
push ecx
push esi
call fcn.004ec192
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 0x43eef1
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 0x43eef1
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 0x43eef1
mov eax, dword [ebp - 0x21c]
cmp eax, 0x14
jb 0x43eef1
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 0x43eef1
mov esi, dword [ebp - 0x238]
sub esi, dword [ebp - 0x21c]
je 0x43eef1
cmp esi, 0x104
ja 0x43eef1
lea eax, [esi + 1]
push eax
call fcn.004ec79a
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 0x43eee2
mov edx, esi
lea ecx, [ebp - 0x234]
call fcn.004b8930
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2bc]
push eax
call fcn.0040c390
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
call fcn.00403780
test esi, esi
je 0x43eef8
push esi
call fcn.004ec795
add esp, 4
jmp 0x43eef8
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 0x43ef40
mov ecx, dword [ebp - 0x250]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43ef36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43ed0b
push edx
push ecx
call fcn.004ec192
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.00403780
mov al, byte [ebp - 0x2b5]
jmp 0x43ef77
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.004ec151
mov esp, ebp
pop ebp
ret 8