Function at 0x413430
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x446b9b
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x4630d0]
xor eax, esp
mov dword [esp + 0x830], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4630d0]
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 0x413490
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
push esi
call edx
jmp 0x413783
cmp dword [ebx + 0x14], ebp
jne 0x41349f
mov eax, 0x1f4
jmp 0x413783
mov eax, dword [ebx]
mov edx, dword [eax + 0xa4]
call edx
test eax, eax
je 0x4134b7
mov eax, 0x1f5
jmp 0x413783
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.0040ed90
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 0x41351f
mov esi, 0x6a
jmp 0x41355b
push eax
push 1
lea eax, [esp + 0x48]
push 0x800
push eax
call fcn.00433b6f
add esp, 0x10
cmp eax, 1
je 0x413559
mov ecx, dword [ebx + 0x14]
push ecx
call fcn.004338a4
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffe0b
add esi, 0x1f5
jmp 0x41355b
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 0x413581
cmp esi, 1
jne 0x4136e2
cmp edi, 0x800
jge 0x413591
mov dword [esp + 0x30], 1
mov eax, edi
cdq
sub eax, edx
sar eax, 1
test eax, eax
mov dword [esp + 0x14], ebp
jle 0x413697
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 0x4135d8
cmp dx, 0xfefe
ja 0x4135d8
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 0x4136a3
cmp cx, 0xd
je 0x4136b7
cmp dx, 0xfffe
jne 0x413627
mov dword [eax + 8], 1
mov eax, edi
sub eax, ebx
sub eax, 2
push eax
push ebp
push esi
call fcn.00434020
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 0x413667
cmp dx, 0xfeff
jne 0x41365e
mov ecx, edi
sub ecx, ebx
sub ecx, 2
push ecx
push ebp
push esi
mov dword [eax + 8], 0
call fcn.00434020
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 0x413667
test dx, dx
je 0x4136e9
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 0x4135b0
mov ebx, dword [esp + 0x18]
xor ebp, ebp
cmp dword [esp + 0x30], ebp
je 0x413500
jmp 0x4136ed
xor ebp, ebp
cmp dx, 0xd
mov ebx, eax
jne 0x4136d8
mov dword [esp + 0x24], 1
jmp 0x4136ed
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
xor ebp, ebp
cmp dx, 0xa
mov word [esp + eax*2 + 0x3e], 0xa
jne 0x4136d8
mov dword [esp + 0x24], 1
jmp 0x4136ed
mov dword [esp + 0x20], 1
jmp 0x4136ed
mov eax, esi
jmp 0x413783
xor ebp, ebp
mov ebx, eax
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
jle 0x41372b
mov eax, edi
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jne 0x41370d
cmp dword [esp + 0x24], ebp
lea eax, [ecx - 1]
jne 0x413718
mov eax, ecx
jmp 0x413718
cmp dword [esp + 0x24], ebp
mov eax, ecx
jne 0x413718
lea eax, [ecx + 1]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x2c]
mov word [esp + eax*2 + 0x44], bp
call fcn.00412b00
mov esi, dword [esp + 0x14]
lea edx, [esi + esi]
cmp edx, edi
jl 0x413741
cmp dword [esp + 0x20], ebp
je 0x413781
add esi, 2
jmp 0x41374f
cmp dword [esp + 0x20], ebp
je 0x41374c
add esi, 2
jmp 0x41374f
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.00431df7
add esp, 0x840
ret 4