Function at 0x4164f0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44749b
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x4630c8]
xor eax, esp
mov dword [esp + 0x830], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4630c8]
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 0x416550
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
push esi
call edx
jmp 0x416843
cmp dword [ebx + 0x14], ebp
jne 0x41655f
mov eax, 0x1f4
jmp 0x416843
mov eax, dword [ebx]
mov edx, dword [eax + 0xa4]
call edx
test eax, eax
je 0x416577
mov eax, 0x1f5
jmp 0x416843
push 0x44b4c8
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.00401b00
lea ecx, [esp + 0x30]
mov dword [esp + 0x850], 0xffffffff
call fcn.0040ec70
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 0x4165df
mov esi, 0x6a
jmp 0x41661b
push eax
push 1
lea eax, [esp + 0x48]
push 0x800
push eax
call fcn.00434089
add esp, 0x10
cmp eax, 1
je 0x416619
mov ecx, dword [ebx + 0x14]
push ecx
call fcn.00433dbe
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffe0b
add esi, 0x1f5
jmp 0x41661b
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 0x416641
cmp esi, 1
jne 0x4167a2
cmp edi, 0x800
jge 0x416651
mov dword [esp + 0x30], 1
mov eax, edi
cdq
sub eax, edx
sar eax, 1
test eax, eax
mov dword [esp + 0x14], ebp
jle 0x416757
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 0x416698
cmp dx, 0xfefe
ja 0x416698
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 0x416763
cmp cx, 0xd
je 0x416777
cmp dx, 0xfffe
jne 0x4166e7
mov dword [eax + 8], 1
mov eax, edi
sub eax, ebx
sub eax, 2
push eax
push ebp
push esi
call fcn.00434540
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 0x416727
cmp dx, 0xfeff
jne 0x41671e
mov ecx, edi
sub ecx, ebx
sub ecx, 2
push ecx
push ebp
push esi
mov dword [eax + 8], 0
call fcn.00434540
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 0x416727
test dx, dx
je 0x4167a9
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 0x416670
mov ebx, dword [esp + 0x18]
xor ebp, ebp
cmp dword [esp + 0x30], ebp
je 0x4165c0
jmp 0x4167ad
xor ebp, ebp
cmp dx, 0xd
mov ebx, eax
jne 0x416798
mov dword [esp + 0x24], 1
jmp 0x4167ad
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
xor ebp, ebp
cmp dx, 0xa
mov word [esp + eax*2 + 0x3e], 0xa
jne 0x416798
mov dword [esp + 0x24], 1
jmp 0x4167ad
mov dword [esp + 0x20], 1
jmp 0x4167ad
mov eax, esi
jmp 0x416843
xor ebp, ebp
mov ebx, eax
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
jle 0x4167eb
mov eax, edi
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jne 0x4167cd
cmp dword [esp + 0x24], ebp
lea eax, [ecx - 1]
jne 0x4167d8
mov eax, ecx
jmp 0x4167d8
cmp dword [esp + 0x24], ebp
mov eax, ecx
jne 0x4167d8
lea eax, [ecx + 1]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x2c]
mov word [esp + eax*2 + 0x44], bp
call fcn.00415bc0
mov esi, dword [esp + 0x14]
lea edx, [esi + esi]
cmp edx, edi
jl 0x416801
cmp dword [esp + 0x20], ebp
je 0x416841
add esi, 2
jmp 0x41680f
cmp dword [esp + 0x20], ebp
je 0x41680c
add esi, 2
jmp 0x41680f
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.00431d0b
add esp, 0x840
ret 4