Function at 0x416870
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4474db
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.004339f0
mov eax, dword [0x4630c8]
xor eax, esp
mov dword [esp + 0x1024], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4630c8]
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 0x4168d0
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
push esi
call edx
jmp 0x416ab1
cmp dword [edi + 0x14], ebx
jne 0x4168df
mov eax, 0x1f4
jmp 0x416ab1
mov eax, dword [edi]
mov edx, dword [eax + 0xa4]
call edx
test eax, eax
je 0x4168f7
mov eax, 0x1f5
jmp 0x416ab1
mov eax, dword [edi]
mov edx, dword [eax + 0x94]
mov ecx, edi
call edx
push 0x44b4c8
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.00401b00
lea ecx, [esp + 0x18]
mov dword [esp + 0x1044], 0xffffffff
call fcn.0040ec70
mov dword [esp + 0x18], ebx
push 0x1002
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.00432e00
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 0x41697a
lea esi, [eax + 0x6a]
jmp 0x4169b6
push eax
push 1
lea eax, [esp + 0x3c]
push 0x1000
push eax
call fcn.00434089
add esp, 0x10
cmp eax, 1
je 0x4169b4
mov ecx, dword [edi + 0x14]
push ecx
call fcn.00433dbe
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffe0b
add esi, 0x1f5
jmp 0x4169b6
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 0x4169dc
cmp esi, 1
jne 0x416adb
xor ebx, ebx
cmp eax, 0x1000
lea ebp, [eax - 2]
jge 0x4169f0
mov dword [esp + 0x18], 1
cdq
sub eax, edx
sar eax, 1
xor esi, esi
test eax, eax
jle 0x416a6e
jmp 0x416a00
movzx ecx, word [esp + esi*2 + 0x34]
xor edx, edx
cmp dword [edi + 8], edx
je 0x416a1f
cmp cx, 0xfefe
ja 0x416a1f
rol cx, 8
movzx ecx, cx
mov word [esp + esi*2 + 0x34], cx
cmp cx, 0xd
je 0x416a5f
cmp cx, dx
je 0x416a5f
cmp esi, edx
jne 0x416a56
cmp cx, 0xfffe
jne 0x416a3f
mov ebx, 1
mov dword [edi + 8], ebx
jmp 0x416a56
cmp cx, 0xfeff
jne 0x416a4b
mov dword [edi + 8], edx
jmp 0x416a51
cmp cx, 0xa
jne 0x416a56
mov ebx, 1
add esi, 1
cmp esi, eax
jl 0x416a00
jmp 0x416a6e
mov word [esp + esi*2 + 0x34], dx
mov ebp, esi
mov dword [esp + 0x18], 1
add dword [esp + 0x14], ebp
cmp ebp, ebx
jle 0x416a84
mov ecx, dword [esp + 0x24]
lea eax, [esp + ebx*2 + 0x34]
push eax
call fcn.00415bc0
cmp dword [esp + 0x18], 0
je 0x416949
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.00431d0b
add esp, 0x1034
ret 4
mov eax, esi
jmp 0x416ab1