Function at 0x413810
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x446d0b
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.004344e0
mov eax, dword [0x4630d8]
xor eax, esp
mov dword [esp + 0x1024], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4630d8]
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 0x413870
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
push esi
call edx
jmp 0x413a51
cmp dword [edi + 0x14], ebx
jne 0x41387f
mov eax, 0x1f4
jmp 0x413a51
mov eax, dword [edi]
mov edx, dword [eax + 0xa4]
call edx
test eax, eax
je 0x413897
mov eax, 0x1f5
jmp 0x413a51
mov eax, dword [edi]
mov edx, dword [eax + 0x94]
mov ecx, edi
call edx
push 0x44b504
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.00401b30
lea ecx, [esp + 0x18]
mov dword [esp + 0x1044], 0xffffffff
call fcn.0040ed80
mov dword [esp + 0x18], ebx
push 0x1002
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.00432e50
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 0x41391a
lea esi, [eax + 0x6a]
jmp 0x413956
push eax
push 1
lea eax, [esp + 0x3c]
push 0x1000
push eax
call fcn.00433cbf
add esp, 0x10
cmp eax, 1
je 0x413954
mov ecx, dword [edi + 0x14]
push ecx
call fcn.004339f4
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffe0b
add esi, 0x1f5
jmp 0x413956
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 0x41397c
cmp esi, 1
jne 0x413a7b
xor ebx, ebx
cmp eax, 0x1000
lea ebp, [eax - 2]
jge 0x413990
mov dword [esp + 0x18], 1
cdq
sub eax, edx
sar eax, 1
xor esi, esi
test eax, eax
jle 0x413a0e
jmp 0x4139a0
movzx ecx, word [esp + esi*2 + 0x34]
xor edx, edx
cmp dword [edi + 8], edx
je 0x4139bf
cmp cx, 0xfefe
ja 0x4139bf
rol cx, 8
movzx ecx, cx
mov word [esp + esi*2 + 0x34], cx
cmp cx, 0xd
je 0x4139ff
cmp cx, dx
je 0x4139ff
cmp esi, edx
jne 0x4139f6
cmp cx, 0xfffe
jne 0x4139df
mov ebx, 1
mov dword [edi + 8], ebx
jmp 0x4139f6
cmp cx, 0xfeff
jne 0x4139eb
mov dword [edi + 8], edx
jmp 0x4139f1
cmp cx, 0xa
jne 0x4139f6
mov ebx, 1
add esi, 1
cmp esi, eax
jl 0x4139a0
jmp 0x413a0e
mov word [esp + esi*2 + 0x34], dx
mov ebp, esi
mov dword [esp + 0x18], 1
add dword [esp + 0x14], ebp
cmp ebp, ebx
jle 0x413a24
mov ecx, dword [esp + 0x24]
lea eax, [esp + ebx*2 + 0x34]
push eax
call fcn.00412b60
cmp dword [esp + 0x18], 0
je 0x4138e9
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.00431f44
add esp, 0x1034
ret 4
mov eax, esi
jmp 0x413a51