Function at 0x100fe040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1f60
call fcn.101ab570
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
test eax, eax
je 0x100fe2e7
push 0x101ba974
push 0x101fb6c0
push eax
call dword [sym.imp.tier0_s.dll_fopen_utf8_internal]
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x100fe2e7
push edi
push 2
push 0
push ebx
call fcn.101be845
push ebx
call fcn.101bee31
push 0
mov edi, eax
mov dword [ebp + 8], edx
push 0
push ebx
mov dword [ebp - 0xc], edi
call fcn.101be845
mov eax, edi
mov ecx, 0x1a9fbe77
mul ecx
mov ebx, 0x624dd2f
add esp, 0x1c
mov dword [ebp - 8], eax
mov edi, edx
mov eax, dword [ebp - 0xc]
mul ebx
mov ebx, eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mul ecx
mov ecx, eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
mov edx, 0x624dd2f
mul edx
add ecx, edi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x18]
adc edx, 0
mov dword [ebp - 0x20], eax
add ebx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov ebx, edi
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0x20]
adc eax, eax
add ecx, edx
mov edx, dword [ebp - 4]
adc edx, eax
mov eax, dword [ebp + 8]
sub ebx, ecx
sbb eax, edx
shrd ebx, eax, 1
shr eax, 1
add ebx, ecx
mov ecx, 0x1f40
adc eax, edx
shrd ebx, eax, 0xc
shr eax, 0xc
mov dword [ebp - 0x14], eax
mul ecx
mov edx, 0x1f40
mov dword [ebp - 0x18], ebx
mov ecx, eax
mov eax, ebx
mul edx
add ecx, edx
sub edi, eax
mov dword [ebp - 0xc], edi
sbb dword [ebp + 8], ecx
xor ebx, ebx
xor edi, edi
cmp dword [ebp - 0x14], ebx
jb 0x100fe195
ja 0x100fe150
cmp dword [ebp - 0x18], ebx
jbe 0x100fe195
lea esp, [esp]
push dword [ebp - 0x10]
lea eax, [ebp - 0x1f60]
push 0x1f40
push 1
push eax
call fcn.101be125
add esp, 0x10
cmp eax, 0x1f40
jne 0x100fe2d1
push eax
lea eax, [ebp - 0x1f60]
mov ecx, esi
push eax
call fcn.100ff6c0
add edi, 1
adc ebx, 0
cmp ebx, dword [ebp - 0x14]
jb 0x100fe150
ja 0x100fe195
cmp edi, dword [ebp - 0x18]
jb 0x100fe150
mov ebx, dword [ebp - 0xc]
mov eax, ebx
mov edi, dword [ebp + 8]
or eax, edi
je 0x100fe1d7
push dword [ebp - 0x10]
lea eax, [ebp - 0x1f60]
push ebx
push 1
push eax
call fcn.101be125
add esp, 0x10
xor ecx, ecx
cmp eax, ebx
jne 0x100fe2d1
cmp ecx, edi
jne 0x100fe2d1
push ebx
lea eax, [ebp - 0x1f60]
mov ecx, esi
push eax
call fcn.100ff6c0
push dword [ebp - 0x10]
call fcn.101bce93
add esp, 4
cmp byte [ebp + 0xc], 0
je 0x100fe2c6
mov ecx, dword [esi + 0x2c]
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 6], al
mov byte [ebp - 5], cl
mov ecx, dword [esi + 0x28]
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 4], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 3], al
mov eax, ecx
push 1
shr eax, 8
mov byte [ebp - 1], cl
mov ecx, esi
push 0x10202ad0
mov byte [ebp - 2], al
call fcn.100ff6c0
mov eax, dword [esi + 0x28]
and eax, 0x1f8
cmp eax, 0x1c0
je 0x100fe262
push 1
push 0x10202ad4
mov ecx, esi
call fcn.100ff6c0
mov eax, dword [esi + 0x28]
and eax, 0x1f8
cmp eax, 0x1c0
jne 0x100fe245
push 8
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.100ff6c0
xor edx, edx
mov eax, edx
mov ecx, 3
and eax, 3
sub ecx, eax
mov eax, edx
shr eax, 2
shl ecx, 3
mov eax, dword [esi + eax*4 + 0x14]
shr eax, cl
mov byte [edx + esi], al
inc edx
cmp edx, 0x14
jb 0x100fe271
push 0x40
lea edi, [esi + 0x30]
push 0
push edi
call fcn.101aca80
xor ecx, ecx
lea eax, [esi + 0x14]
mov dword [eax], ecx
add esp, 0xc
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [esi + 0x28], ecx
push edi
mov dword [esi + 0x2c], ecx
mov ecx, esi
push eax
call fcn.100fe300
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 0x10]
call fcn.101bce93
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8