Function at 0x412fe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x45c
mov edi, edx
mov esi, ecx
mov eax, dword [0x587040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x410]
push 0x400
push 0xff
push eax
call fcn.004f0940
add esp, 0xc
cmp byte [esi + 0xb], 0
mov dword [ebp - 0x460], edi
jns 0x413021
mov esi, dword [esi]
sub esp, 0x1c
xor ebx, ebx
mov dword [esp + 0x18], ebx
movaps xmm0, xmmword [0x565e90]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [ebp - 0x414]
mov dword [eax], 0xffffffff
push ebx
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x41322b
mov eax, dword [ebp - 0x414]
mov byte [ebp + eax - 0x410], 0
xorps xmm0, xmm0
movsd qword [ebp - 0x420], xmm0
mov dword [ebp - 0x418], 0
lea eax, [ebp - 0x410]
push eax
call fcn.00507c20
add esp, 4
cmp eax, 0x7ffffff8
jae 0x413643
mov ebx, eax
lea edi, [ebp - 0x42c]
cmp eax, 0xa
jbe 0x41323f
mov esi, ebx
or esi, 7
inc esi
push esi
call fcn.004ec94e
add esp, 4
mov dword [ebp - 0x42c], eax
or esi, 0x80000000
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], ebx
lea esi, [eax + ebx]
lea edx, [ebp - 0x410]
cmp eax, edx
seta cl
cmp esi, edx
setbe dl
or dl, cl
je 0x41364e
test ebx, ebx
je 0x413120
push ebx
lea ecx, [ebp - 0x410]
push ecx
push eax
call fcn.004f03c0
add esp, 0xc
mov byte [esi], 0
lea eax, [ebp - 0x420]
push eax
push edi
call fcn.00412cb0
add esp, 8
cmp byte [ebp - 0x421], 0
jns 0x41314a
push dword [ebp - 0x42c]
call fcn.004ec97e
add esp, 4
push 0x20
call fcn.004ec94e
add esp, 4
mov esi, eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x424], 0x80000010
mov dword [ebp - 0x428], 0xd
add eax, 0x1a
mov ecx, str.__subfolder_:
cmp esi, ecx
seta dl
cmp eax, ecx
setbe al
or al, dl
je 0x41363c
movups xmm0, xmmword [0x565edc]
movups xmmword [esi + 0xa], xmm0
movups xmm0, xmmword [str.__subfolder_:]
movups xmmword [esi], xmm0
mov word [esi + 0x1a], 0
lea ecx, [ebp - 0x438]
lea edx, [ebp - 0x420]
push edi
call fcn.00413660
add esp, 4
mov edi, dword [ebp - 0x460]
cmp byte [edi + 0xb], 0
jns 0x4131d0
push dword [edi]
call fcn.004ec97e
add esp, 4
mov eax, dword [ebp - 0x430]
mov dword [edi + 8], eax
movsd xmm0, qword [ebp - 0x438]
movsd qword [edi], xmm0
movsx eax, byte [edi + 0xb]
test eax, eax
js 0x41324c
cmp al, 2
jb 0x413209
cmp word [edi], 0x22
jne 0x413209
mov ecx, eax
mov edx, edi
test al, al
jns 0x413201
mov edx, dword [edi]
cmp word [edx + ecx*2 - 2], 0x22
je 0x41327d
xor ebx, ebx
push esi
call fcn.004ec97e
add esp, 4
cmp byte [ebp - 0x415], 0
jns 0x41322b
push dword [ebp - 0x420]
call fcn.004ec97e
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ecef0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [ebp - 0x421], bl
mov eax, edi
jmp 0x4130f0
mov ecx, dword [edi + 4]
cmp ecx, 2
jb 0x413209
mov edx, dword [edi]
cmp word [edx], 0x22
jne 0x413209
jmp 0x4131f9
xor ebx, ebx
test cl, cl
jns 0x413272
push dword [ebp - 0x444]
call fcn.004ec97e
add esp, 4
push edi
call fcn.004ec97e
add esp, 4
jmp 0x41320b
test al, al
jns 0x413284
mov eax, dword [edi + 4]
add eax, 0xfffffffe
lea edx, [ebp - 0x444]
lea ecx, [ebp - 0x438]
push edx
push eax
push 1
push edi
call fcn.004a3820
cmp byte [edi + 0xb], 0
jns 0x4132ad
push dword [edi]
call fcn.004ec97e
add esp, 4
mov eax, dword [ebp - 0x430]
mov dword [edi + 8], eax
movsd xmm0, qword [ebp - 0x438]
movsd qword [edi], xmm0
push 0x20
call fcn.004ec94e
add esp, 4
mov edi, eax
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x430], 0x80000010
mov dword [ebp - 0x434], 0xd
add eax, 0x1a
mov ecx, str.__all_users_:
cmp edi, ecx
seta dl
cmp eax, ecx
setbe al
or al, dl
je 0x41363c
movups xmm0, xmmword [0x565ef8]
movups xmmword [edi + 0xa], xmm0
movups xmm0, xmmword [str.__all_users_:]
movups xmmword [edi], xmm0
mov word [edi + 0x1a], 0
xor eax, eax
dec eax
lea ebx, [ebp - 0x444]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea edx, [ebp - 0x420]
mov ecx, ebx
lea eax, [ebp - 0x438]
push eax
call fcn.00413660
add esp, 4
movsx ecx, byte [ebx + 0xb]
mov eax, ecx
test ecx, ecx
jns 0x413355
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x41325e
mov dword [ebp - 0x460], edi
mov dword [ebp - 0x464], esp
push eax
sub esp, 8
mov edi, esp
cmp byte [ebp - 0x439], 0
js 0x4133b1
mov eax, dword [ebp - 0x43c]
mov dword [edi + 8], eax
movsd xmm0, qword [ebp - 0x444]
movsd qword [edi], xmm0
mov ecx, edi
call fcn.00413ad0
mov esp, dword [ebp - 0x464]
mov cl, byte [ebp - 0x439]
test al, al
jne 0x4133c6
xor ebx, ebx
mov edi, dword [ebp - 0x460]
jmp 0x413260
mov ecx, edi
push dword [ebp - 0x440]
push dword [ebp - 0x444]
call fcn.004a33d0
jmp 0x41338d
movzx edi, cl
test cl, cl
cmovs edi, dword [ebp - 0x440]
mov edx, dword [ebp - 0x444]
mov eax, ebx
mov dword [ebp - 0x464], edx
cmovs eax, edx
test edi, edi
js 0x41362d
sete dl
test eax, eax
setne dh
or dh, dl
je 0x413626
mov edx, dword [ebp + 8]
cmp edi, 4
jne 0x41344b
cmp word [eax], 0x74
mov edi, dword [ebp - 0x460]
jne 0x413447
test cl, cl
mov eax, ebx
mov edx, dword [ebp - 0x464]
cmovs eax, edx
cmp word [eax + 2], 0x72
jne 0x413440
test cl, cl
mov eax, ebx
cmovs eax, edx
cmp word [eax + 4], 0x75
jne 0x413440
test cl, cl
cmovs ebx, edx
cmp word [ebx + 6], 0x65
sete cl
jmp 0x413442
xor ecx, ecx
mov edx, dword [ebp + 8]
jmp 0x413453
xor ecx, ecx
jmp 0x413453
xor ecx, ecx
mov edi, dword [ebp - 0x460]
mov byte [edx], cl
push 0x38
call fcn.004ec94e
add esp, 4
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x448], 0x8000001c
mov dword [ebp - 0x44c], 0x1b
lea ebx, [eax + 0x36]
mov ecx, str.__launch_from_install_dir_:
cmp eax, ecx
seta dl
cmp ebx, ecx
setbe cl
or cl, dl
je 0x41363c
movsd xmm0, qword [0x565f38]
movsd qword [eax + 0x2e], xmm0
movups xmm0, xmmword [0x565f2a]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [0x565f1a]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [str.__launch_from_install_dir_:]
movups xmmword [eax], xmm0
mov dword [ebp - 0x464], eax
mov word [eax + 0x36], 0
lea ebx, [ebp - 0x45c]
xor eax, eax
dec eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea eax, [ebp - 0x450]
lea edx, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00413660
add esp, 4
movsx ecx, byte [ebx + 0xb]
mov eax, ecx
test ecx, ecx
jns 0x413504
mov eax, dword [ebp - 0x458]
test eax, eax
je 0x4135e3
mov dword [ebp - 0x468], esp
push eax
sub esp, 8
mov edi, esp
cmp byte [ebp - 0x451], 0
js 0x4135c1
mov eax, dword [ebp - 0x454]
mov dword [edi + 8], eax
movsd xmm0, qword [ebp - 0x45c]
movsd qword [edi], xmm0
mov ecx, edi
call fcn.00413ad0
mov esp, dword [ebp - 0x468]
mov cl, byte [ebp - 0x451]
test al, al
je 0x4135d9
movzx edx, cl
test cl, cl
cmovs edx, dword [ebp - 0x458]
mov eax, dword [ebp - 0x45c]
mov edi, ebx
mov dword [ebp - 0x468], eax
cmovs edi, eax
test edx, edx
js 0x41362d
sete al
test edi, edi
setne ah
or ah, al
je 0x413626
cmp edx, 4
jne 0x4135b7
cmp word [edi], 0x74
jne 0x4135b7
test cl, cl
mov eax, ebx
mov edx, dword [ebp - 0x468]
cmovs eax, edx
cmp word [eax + 2], 0x72
jne 0x4135b7
test cl, cl
mov eax, ebx
cmovs eax, edx
cmp word [eax + 4], 0x75
je 0x413617
xor eax, eax
mov edi, dword [ebp - 0x460]
jmp 0x4135e5
mov ecx, edi
push dword [ebp - 0x458]
push dword [ebp - 0x45c]
call fcn.004a33d0
jmp 0x41353a
xor ebx, ebx
mov edi, dword [ebp - 0x460]
jmp 0x4135ec
xor eax, eax
mov edx, dword [ebp + 0xc]
mov byte [edx], al
mov bl, 1
test cl, cl
jns 0x4135fe
push dword [ebp - 0x45c]
call fcn.004ec97e
add esp, 4
push dword [ebp - 0x464]
call fcn.004ec97e
add esp, 4
mov cl, byte [ebp - 0x439]
jmp 0x413260
test cl, cl
cmovs ebx, edx
cmp word [ebx + 6], 0x65
sete al
jmp 0x4135b9
push str....._third_partylibc_srcinclude_string_view:320:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x413632
push str....._third_partylibc_srcinclude_string_view:318:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
push 0x565ab5
call fcn.0051c8d0
push str....._third_partylibc_srcinclude__stringchar_traits.h:222:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
jmp 0x413632
lea ecx, [ebp - 0x42c]
call fcn.0051bd70
push str....._third_partylibc_srcinclude__stringchar_traits.h:145:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
jmp 0x413632