Function at 0x413490
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x446ccb
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x4630d8]
xor eax, esp
mov dword [esp + 0x830], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4630d8]
xor eax, esp
push eax
lea eax, [esp + 0x848]
mov dword fs:[0], eax
mov esi, dword [esp + 0x858]
mov ebx, ecx
xor ebp, ebp
cmp dword [ebx + 0xc], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], esi
je 0x4134f0
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
push esi
call edx
jmp 0x4137e3
cmp dword [ebx + 0x14], ebp
jne 0x4134ff
mov eax, 0x1f4
jmp 0x4137e3
mov eax, dword [ebx]
mov edx, dword [eax + 0xa4]
call edx
test eax, eax
je 0x413517
mov eax, 0x1f5
jmp 0x4137e3
push 0x44b504
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
call fcn.004010e0
lea eax, [esp + 0x34]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x854], ebp
call fcn.00401b30
lea ecx, [esp + 0x30]
mov dword [esp + 0x850], 0xffffffff
call fcn.0040ed80
mov dword [esp + 0x30], ebp
lea ecx, [ecx]
mov edx, dword [ebx]
mov edx, dword [edx + 0x9c]
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call edx
mov eax, dword [ebx + 0x14]
cmp eax, ebp
jne 0x41357f
mov esi, 0x6a
jmp 0x4135bb
push eax
push 1
lea eax, [esp + 0x48]
push 0x800
push eax
call fcn.00433cbf
add esp, 0x10
cmp eax, 1
je 0x4135b9
mov ecx, dword [ebx + 0x14]
push ecx
call fcn.004339f4
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffe0b
add esi, 0x1f5
jmp 0x4135bb
xor esi, esi
mov edx, dword [ebx]
mov edx, dword [edx + 0x9c]
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call edx
mov edi, dword [esp + 0x3c]
sub edi, dword [esp + 0x38]
cmp esi, ebp
je 0x4135e1
cmp esi, 1
jne 0x413742
cmp edi, 0x800
jge 0x4135f1
mov dword [esp + 0x30], 1
mov eax, edi
cdq
sub eax, edx
sar eax, 1
test eax, eax
mov dword [esp + 0x14], ebp
jle 0x4136f7
xor ebx, ebx
lea esi, [esp + 0x40]
lea ebp, [esp + 0x42]
mov edi, edi
movzx edx, word [esi]
mov eax, dword [esp + 0x18]
cmp dword [eax + 8], 0
mov dword [esp + 0x1c], edx
je 0x413638
cmp dx, 0xfefe
ja 0x413638
rol dx, 8
movzx ecx, dx
mov dword [esp + 0x1c], ecx
mov word [esi], cx
mov edx, ecx
mov ecx, dword [esp + 0x2c]
cmp cx, 0xa
je 0x413703
cmp cx, 0xd
je 0x413717
cmp dx, 0xfffe
jne 0x413687
mov dword [eax + 8], 1
mov eax, edi
sub eax, ebx
sub eax, 2
push eax
push ebp
push esi
call fcn.00434170
sub dword [esp + 0x20], 1
mov edx, dword [esp + 0x28]
add esp, 0xc
sub edi, 2
sub ebx, 2
sub ebp, 2
sub esi, 2
jmp 0x4136c7
cmp dx, 0xfeff
jne 0x4136be
mov ecx, edi
sub ecx, ebx
sub ecx, 2
push ecx
push ebp
push esi
mov dword [eax + 8], 0
call fcn.00434170
sub dword [esp + 0x20], 1
mov edx, dword [esp + 0x28]
add esp, 0xc
sub edi, 2
sub ebx, 2
sub ebp, 2
sub esi, 2
jmp 0x4136c7
test dx, dx
je 0x413749
mov ecx, dword [esp + 0x14]
movzx edx, dx
mov eax, edi
mov dword [esp + 0x2c], edx
cdq
sub eax, edx
add ecx, 1
sar eax, 1
add ebx, 2
add ebp, 2
add esi, 2
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x413610
mov ebx, dword [esp + 0x18]
xor ebp, ebp
cmp dword [esp + 0x30], ebp
je 0x413560
jmp 0x41374d
xor ebp, ebp
cmp dx, 0xd
mov ebx, eax
jne 0x413738
mov dword [esp + 0x24], 1
jmp 0x41374d
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
xor ebp, ebp
cmp dx, 0xa
mov word [esp + eax*2 + 0x3e], 0xa
jne 0x413738
mov dword [esp + 0x24], 1
jmp 0x41374d
mov dword [esp + 0x20], 1
jmp 0x41374d
mov eax, esi
jmp 0x4137e3
xor ebp, ebp
mov ebx, eax
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
jle 0x41378b
mov eax, edi
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jne 0x41376d
cmp dword [esp + 0x24], ebp
lea eax, [ecx - 1]
jne 0x413778
mov eax, ecx
jmp 0x413778
cmp dword [esp + 0x24], ebp
mov eax, ecx
jne 0x413778
lea eax, [ecx + 1]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x2c]
mov word [esp + eax*2 + 0x44], bp
call fcn.00412b60
mov esi, dword [esp + 0x14]
lea edx, [esi + esi]
cmp edx, edi
jl 0x4137a1
cmp dword [esp + 0x20], ebp
je 0x4137e1
add esi, 2
jmp 0x4137af
cmp dword [esp + 0x20], ebp
je 0x4137ac
add esi, 2
jmp 0x4137af
add esi, 1
mov ebp, dword [ebx]
mov eax, ebp
mov edx, dword [eax + 0x94]
mov ecx, ebx
call edx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x28], eax
lea edx, [esi + esi]
mov eax, edi
sub eax, edx
cdq
sub ecx, eax
mov eax, dword [esp + 0x28]
sbb eax, edx
push eax
mov eax, dword [ebp + 0xa0]
push ecx
mov ecx, ebx
call eax
xor eax, eax
mov ecx, dword [esp + 0x848]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.00431f44
add esp, 0x840
ret 4