Function at 0x4430e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51516e
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x565300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 4], 0
xor edi, edi
mov esi, dword [ebp + 8]
cmp dword [esi - 0xc], edi
jl 0x44353c
mov eax, dword [eax + 0x18]
movzx ecx, word [esi]
cmp dword [eax + 0x10], edi
je 0x4433e7
cmp ecx, 0x5c
jne 0x4433e7
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x21c], esi
test esi, esi
je 0x443546
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x224], eax
cmp dword [eax + 4], edi
je 0x4431ab
push esi
lea ecx, [ebp - 0x228]
push ecx
mov ecx, eax
call fcn.0049bb60
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ecx]
je 0x4431ab
movq xmm0, qword [eax + 0x14]
mov eax, dword [eax + 0x1c]
movq qword [ebp - 0x244], xmm0
jmp 0x4431ae
or eax, 0xffffffff
push esi
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x21c]
cmp eax, 0xffffffff
je 0x4434fb
lea esi, [eax + 1]
mov dword [ebp - method.CxAutoArray_unsigned_char_.virtual_0], vtable.CxAutoArray_unsigned_char_.0
push esi
call fcn.0050efaa
push esi
push 0
push eax
mov dword [ebp - 0x234], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x230], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
test eax, eax
jne 0x443241
xor esi, esi
mov dword [ebp - 0x228], esi
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x220]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x10], 0
jne 0x44325a
mov eax, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call eax
push ecx
push dword [ebp - 0x234]
mov ecx, dword [ebp - 0x22c]
or edi, 0xffffffff
call fcn.00443730
jmp 0x4434fb
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x228], esi
test esi, esi
je 0x443550
jmp 0x44320c
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x220], eax
cmp dword [eax + 4], 0
je 0x4433ca
push esi
lea ecx, [ebp - 0x224]
push ecx
mov ecx, eax
call fcn.0049bb60
mov ecx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x224]
cmp eax, dword [ecx]
je 0x4433ca
mov ecx, dword [edi + 0x18]
movq xmm0, qword [eax + 0x14]
mov eax, dword [eax + 0x1c]
movq qword [ebp - 0x244], xmm0
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
test edx, edx
je 0x443335
mov edi, dword [ebp - 0x244]
lea eax, [edi + 0x1e]
cmp eax, dword [ecx + 0xc]
jg 0x443335
movups xmm0, xmmword [edx + edi]
mov eax, dword [edx + edi + 0x18]
mov dword [ebp - 0x24c], eax
mov ax, word [edx + edi + 0x1c]
movzx ecx, word [ebp - 0x24a]
movups xmmword [ebp - 0x264], xmm0
movzx eax, ax
movq xmm0, qword [edx + edi + 0x10]
mov edx, dword [ebp - 0x21c]
mov edi, edx
cmp dword [ebp - 0x220], edx
movq qword [ebp - 0x254], xmm0
cmovl edi, dword [ebp - 0x220]
add ecx, 0x1e
add ecx, dword [ebp - 0x244]
add eax, ecx
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x220], eax
test edx, edx
js 0x44337d
cmp edx, edi
jge 0x44337d
or edi, 0xffffffff
jmp 0x4433a7
movzx ecx, word [ebp - 0x24a]
movzx eax, word [ebp - 0x248]
add ecx, 0x1e
mov edx, dword [ebp - 0x21c]
add eax, ecx
cmp dword [ebp - 0x220], edx
mov edi, edx
mov ecx, dword [ebp - 0x224]
cmovl edi, dword [ebp - 0x220]
add eax, dword [ebp - 0x244]
cmp dword [ebp - 0x228], 0
mov dword [ebp - 0x220], eax
jne 0x443328
or edi, 0xffffffff
jmp 0x4433a7
add eax, edi
cmp eax, dword [ecx + 0xc]
jle 0x443389
or edi, 0xffffffff
jmp 0x4433a7
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x228]
add eax, ecx
push edi
push eax
push dword [ebp - 0x234]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call eax
test edi, edi
je 0x4433d2
push ecx
push dword [ebp - 0x234]
mov ecx, dword [ebp - 0x22c]
call fcn.00443730
jmp 0x4434fb
mov eax, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call eax
push dword [ebp - 0x234]
call fcn.0050ebe3
add esp, 4
xor edi, edi
jmp 0x4434fb
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x218]
cmp word [esi], 0x5c
jne 0x443429
mov eax, dword [ebp - 0x220]
push dword [eax + 0x10]
call fcn.00445bb0
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x44342f
push esi
call fcn.00445bb0
push 0x52dda8
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], edi
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x4434fb
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x4434fb
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push eax
call edi
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov dword [ebp - 0x224], eax
lea esi, [eax + 1]
push esi
call fcn.0050efaa
push esi
mov esi, eax
mov dword [ebp - 0x228], eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
push 0
push 0
push dword [ebp - 0x21c]
call edi
push dword [ebp - 0x21c]
mov edi, dword [ebp - 0x224]
push edi
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [ebp - 0x22c]
add esp, 0x40
mov eax, dword [eax + 4]
cmp eax, esi
je 0x4434fb
test eax, eax
je 0x4434eb
push eax
call fcn.0050ebe3
add esp, 4
mov eax, dword [ebp - 0x22c]
mov dword [eax + 4], esi
mov dword [eax + 8], 0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44351d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.0050ea5d
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00404110
push 0x8007000e
call fcn.00404110
push 0x8007000e
call fcn.00404110
int3