Function at 0x417fe0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x448c9b
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.00435050
mov eax, dword [0x4650f0]
xor eax, esp
mov dword [esp + 0x1024], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0x103c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x104c]
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0xc], ebx
mov dword [esp + 0x24], esi
je 0x418040
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
push esi
call edx
jmp 0x418221
cmp dword [edi + 0x14], ebx
jne 0x41804f
mov eax, 0x1f4
jmp 0x418221
mov eax, dword [edi]
mov edx, dword [eax + 0xa4]
call edx
test eax, eax
je 0x418067
mov eax, 0x1f5
jmp 0x418221
mov eax, dword [edi]
mov edx, dword [eax + 0x94]
mov ecx, edi
call edx
push 0x44d998
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], ebx
call fcn.004010e0
lea eax, [esp + 0x1c]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x1048], ebx
call fcn.00401d00
lea ecx, [esp + 0x18]
mov dword [esp + 0x1044], 0xffffffff
call fcn.00411520
mov dword [esp + 0x18], ebx
push 0x1002
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.00433810
mov edx, dword [edi]
mov edx, dword [edx + 0x9c]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call edx
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x4180ea
lea esi, [eax + 0x6a]
jmp 0x418126
push eax
push 1
lea eax, [esp + 0x3c]
push 0x1000
push eax
call fcn.004356e9
add esp, 0x10
cmp eax, 1
je 0x418124
mov ecx, dword [edi + 0x14]
push ecx
call fcn.0043541e
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffe0b
add esi, 0x1f5
jmp 0x418126
xor esi, esi
mov edx, dword [edi]
mov edx, dword [edx + 0x9c]
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x20]
test esi, esi
je 0x41814c
cmp esi, 1
jne 0x41824b
xor ebx, ebx
cmp eax, 0x1000
lea ebp, [eax - 2]
jge 0x418160
mov dword [esp + 0x18], 1
cdq
sub eax, edx
sar eax, 1
xor esi, esi
test eax, eax
jle 0x4181de
jmp 0x418170
movzx ecx, word [esp + esi*2 + 0x34]
xor edx, edx
cmp dword [edi + 8], edx
je 0x41818f
cmp cx, 0xfefe
ja 0x41818f
rol cx, 8
movzx ecx, cx
mov word [esp + esi*2 + 0x34], cx
cmp cx, 0xd
je 0x4181cf
cmp cx, dx
je 0x4181cf
cmp esi, edx
jne 0x4181c6
cmp cx, 0xfffe
jne 0x4181af
mov ebx, 1
mov dword [edi + 8], ebx
jmp 0x4181c6
cmp cx, 0xfeff
jne 0x4181bb
mov dword [edi + 8], edx
jmp 0x4181c1
cmp cx, 0xa
jne 0x4181c6
mov ebx, 1
add esi, 1
cmp esi, eax
jl 0x418170
jmp 0x4181de
mov word [esp + esi*2 + 0x34], dx
mov ebp, esi
mov dword [esp + 0x18], 1
add dword [esp + 0x14], ebp
cmp ebp, ebx
jle 0x4181f4
mov ecx, dword [esp + 0x24]
lea eax, [esp + ebx*2 + 0x34]
push eax
call fcn.00417330
cmp dword [esp + 0x18], 0
je 0x4180b9
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
mov edx, dword [edx + 0xa0]
lea ecx, [eax + eax + 2]
xor eax, eax
add ecx, dword [esp + 0x28]
adc eax, dword [esp + 0x2c]
push eax
push ecx
mov ecx, edi
call edx
xor eax, eax
mov ecx, dword [esp + 0x103c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.00433122
add esp, 0x1034
ret 4
mov eax, esi
jmp 0x418221