Function at 0x414060
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x446eeb
mov eax, dword fs:[0]
push eax
mov eax, 0x1034
call fcn.00433b20
mov eax, dword [0x4630d0]
xor eax, esp
mov dword [esp + 0x1030], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4630d0]
xor eax, esp
push eax
lea eax, [esp + 0x1048]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1058]
mov ebx, ecx
xor ebp, ebp
cmp dword [ebx + 0xc], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], esi
je 0x4140c4
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
push esi
call edx
jmp 0x4143b3
cmp dword [ebx + 0x14], ebp
jne 0x4140d3
mov eax, 0x1f4
jmp 0x4143b3
mov eax, dword [ebx]
mov edx, dword [eax + 0xa4]
call edx
test eax, eax
je 0x4140eb
mov eax, 0x1f5
jmp 0x4143b3
push 0x44b930
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 + 0x1054], ebp
call fcn.00401b00
lea ecx, [esp + 0x30]
mov dword [esp + 0x1050], 0xffffffff
call fcn.0040fd60
mov dword [esp + 0x30], ebp
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 0x414150
mov esi, 0x6a
jmp 0x41418c
push eax
push 1
lea eax, [esp + 0x48]
push 0x1000
push eax
call fcn.004341b9
add esp, 0x10
cmp eax, 1
je 0x41418a
mov ecx, dword [ebx + 0x14]
push ecx
call fcn.00433eee
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffe0b
add esi, 0x1f5
jmp 0x41418c
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 0x4141b2
cmp esi, 1
jne 0x414312
cmp edi, 0x1000
jge 0x4141c2
mov dword [esp + 0x30], 1
mov eax, edi
cdq
sub eax, edx
sar eax, 1
test eax, eax
mov dword [esp + 0x14], ebp
jle 0x4142c7
xor ebx, ebx
lea esi, [esp + 0x40]
lea ebp, [esp + 0x42]
nop
movzx edx, word [esi]
mov eax, dword [esp + 0x18]
cmp dword [eax + 8], 0
mov dword [esp + 0x1c], edx
je 0x414208
cmp dx, 0xfefe
ja 0x414208
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 0x4142d3
cmp cx, 0xd
je 0x4142e7
cmp dx, 0xfffe
jne 0x414257
mov dword [eax + 8], 1
mov eax, edi
sub eax, ebx
sub eax, 2
push eax
push ebp
push esi
call fcn.00434670
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 0x414297
cmp dx, 0xfeff
jne 0x41428e
mov ecx, edi
sub ecx, ebx
sub ecx, 2
push ecx
push ebp
push esi
mov dword [eax + 8], 0
call fcn.00434670
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 0x414297
test dx, dx
je 0x414319
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 0x4141e0
mov ebx, dword [esp + 0x18]
xor ebp, ebp
cmp dword [esp + 0x30], ebp
je 0x414131
jmp 0x41431d
xor ebp, ebp
cmp dx, 0xd
mov ebx, eax
jne 0x414308
mov dword [esp + 0x24], 1
jmp 0x41431d
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
xor ebp, ebp
cmp dx, 0xa
mov word [esp + eax*2 + 0x3e], 0xa
jne 0x414308
mov dword [esp + 0x24], 1
jmp 0x41431d
mov dword [esp + 0x20], 1
jmp 0x41431d
mov eax, esi
jmp 0x4143b3
xor ebp, ebp
mov ebx, eax
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
jle 0x41435b
mov eax, edi
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jne 0x41433d
cmp dword [esp + 0x24], ebp
lea eax, [ecx - 1]
jne 0x414348
mov eax, ecx
jmp 0x414348
cmp dword [esp + 0x24], ebp
mov eax, ecx
jne 0x414348
lea eax, [ecx + 1]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x2c]
mov word [esp + eax*2 + 0x44], bp
call fcn.00413730
mov esi, dword [esp + 0x14]
lea edx, [esi + esi]
cmp edx, edi
jl 0x414371
cmp dword [esp + 0x20], ebp
je 0x4143b1
add esi, 2
jmp 0x41437f
cmp dword [esp + 0x20], ebp
je 0x41437c
add esi, 2
jmp 0x41437f
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 + 0x1048]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1030]
xor ecx, esp
call fcn.00431d07
add esp, 0x1040
ret 4