Function at 0x417250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d891
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x19e0
call fcn.004363a0
mov eax, dword [0x44d404]
xor eax, esp
mov dword [esp + 0x19dc], eax
push ebx
push esi
mov eax, dword [0x44d404]
xor eax, esp
push eax
lea eax, [esp + 0x19f0]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push esi
mov dword [esp + 0x274], 7
mov dword [esp + 0x270], ebx
mov word [esp + 0x260], bx
call fcn.0042239a
mov ecx, esi
add esp, 4
lea esi, [esp + 0x258]
call fcn.004057ef
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x19fc], ebx
mov eax, esi
mov dword [esp + 0x14], 0x5c
call fcn.004049d8
cmp eax, 0xffffffff
je 0x417330
mov ecx, esi
push 0xffffffffffffffff
lea ebx, [eax + 1]
push ecx
lea esi, [esp + 0x20]
call fcn.0040128a
push 0xffffffffffffffff
lea edx, [esp + 0x25c]
push edx
xor ebx, ebx
mov byte [esp + 0x1a00], 1
call fcn.004013bc
mov byte [esp + 0x19f8], bl
cmp dword [esp + 0x30], 8
jb 0x41732e
mov eax, dword [esp + 0x1c]
push eax
call fcn.0042181b
add esp, 4
xor ebx, ebx
mov eax, dword [0x46d454]
cmp eax, ebx
jne 0x417343
call fcn.00401e42
mov dword [0x46d454], eax
push 0x46b938
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call fcn.0041cac0
mov esi, eax
push esi
mov dword [esp + 0x258], 7
mov dword [esp + 0x254], ebx
mov word [esp + 0x244], bx
call fcn.0042239a
mov ecx, esi
add esp, 4
lea esi, [esp + 0x23c]
call fcn.004057ef
push str._scd_
mov byte [esp + 0x19fc], 2
call fcn.0042239a
add esp, 4
mov ebx, eax
push str._scd_
mov eax, esi
call fcn.00405759
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea eax, [esp + 0x260]
call fcn.004056b4
cmp dword [esp + 0x254], 8
mov eax, dword [esp + 0x240]
mov dword [esp + 0x14], ebx
jae 0x4173d7
lea eax, [esp + 0x240]
push 0x444374
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00421ec1
mov esi, dword [esp + 0x20]
add esp, 0xc
cmp esi, ebx
jne 0x41744a
mov esi, 8
cmp dword [esp + 0x254], esi
jb 0x417410
mov eax, dword [esp + 0x240]
push eax
call fcn.0042181b
add esp, 4
cmp dword [esp + 0x270], esi
mov dword [esp + 0x254], 7
mov dword [esp + 0x250], ebx
mov word [esp + 0x240], bx
jb 0x417443
mov ecx, dword [esp + 0x25c]
push ecx
call fcn.0042181b
add esp, 4
xor al, al
jmp 0x4175f2
push 0x153c
lea edx, [esp + 0x4ac]
push ebx
push edx
mov dword [esp + 0x4b0], ebx
call fcn.004223b0
add esp, 0xc
push esi
push 1
lea eax, [esp + 0x4ac]
push 0x1540
push eax
call fcn.00421c7f
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00421915
mov eax, dword [esp + 0x270]
add esp, 0x14
cmp dword [esp + 0x270], 8
jae 0x4174a1
lea eax, [esp + 0x25c]
push eax
lea edx, [esp + 0x298]
push 0x104
push edx
call fcn.00422bd4
add esp, 0xc
push 0x20
lea eax, [esp + 0x4c4]
push eax
lea ecx, [esp + 0x27c]
push 0x20
push ecx
mov dword [esp + 0x4ac], ebx
call fcn.00421666
mov edx, dword [esp + 0x5d0]
lea eax, [esp + 0x4d0]
mov dword [esp + 0x4b0], edx
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4174f2
sub eax, edx
sar eax, 1
mov ecx, edi
je 0x4176b2
xor esi, esi
call fcn.00418770
test eax, eax
jle 0x417591
mov eax, dword [edi + 4]
test eax, eax
je 0x417537
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x41753c
call fcn.0042180b
mov eax, dword [edi + 4]
lea ecx, [esp + 0x4c0]
add eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41756e
test dx, dx
je 0x41756a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41756e
add eax, 4
add ecx, 4
test dx, dx
jne 0x417548
xor eax, eax
jmp 0x417573
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x417615
mov ecx, edi
add esi, 1
add ebx, 0x230
call fcn.00418770
cmp esi, eax
jl 0x417514
xor ebx, ebx
lea eax, [esp + 0x274]
mov esi, edi
call fcn.004187a0
mov esi, 8
cmp dword [esp + 0x254], esi
jb 0x4175bd
mov edx, dword [esp + 0x240]
push edx
call fcn.0042181b
add esp, 4
cmp dword [esp + 0x270], esi
mov dword [esp + 0x254], 7
mov dword [esp + 0x250], ebx
mov word [esp + 0x240], bx
jb 0x4175f0
mov eax, dword [esp + 0x25c]
push eax
call fcn.0042181b
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x19f0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x19dc]
xor ecx, esp
call fcn.00421402
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
test eax, eax
je 0x417638
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x41763d
call fcn.0042180b
mov eax, dword [edi + 4]
imul esi, esi, 0x230
mov ecx, dword [esp + 0x5c0]
mov dword [esi + eax + 0x22c], ecx
mov esi, 8
cmp dword [esp + 0x254], esi
jb 0x417672
mov edx, dword [esp + 0x240]
push edx
call fcn.0042181b
add esp, 4
xor eax, eax
cmp dword [esp + 0x270], esi
mov dword [esp + 0x254], 7
mov dword [esp + 0x250], eax
mov word [esp + 0x240], ax
jb 0x417443
mov eax, dword [esp + 0x25c]
push eax
call fcn.0042181b
add esp, 4
xor al, al
jmp 0x4175f2
call fcn.00418770
test eax, eax
jle 0x41758f
mov dword [esp + 0x10], 0
cmp dword [esp + 0x270], 8
mov esi, dword [esp + 0x25c]
jae 0x4176df
lea esi, [esp + 0x25c]
mov eax, dword [edi + 4]
test eax, eax
je 0x417702
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x417707
call fcn.0042180b
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x10]
mov ecx, esi
lea eax, [eax + edx + 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41773a
test dx, dx
je 0x417736
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41773a
add eax, 4
add ecx, 4
test dx, dx
jne 0x417714
xor eax, eax
jmp 0x41773f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x417762
add dword [esp + 0x10], 0x230
mov ecx, edi
add ebx, 1
call fcn.00418770
cmp ebx, eax
jl 0x4176c7
jmp 0x41758f
mov eax, dword [edi + 4]
test eax, eax
je 0x417785
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x41778a
call fcn.0042180b
mov ecx, dword [edi + 4]
imul ebx, ebx, 0x230
mov edx, dword [esp + 0x5c0]
mov esi, 8
mov dword [ebx + ecx + 0x22c], edx
cmp dword [esp + 0x254], esi
jb 0x4177bf
mov eax, dword [esp + 0x240]
push eax
call fcn.0042181b
add esp, 4
xor eax, eax
cmp dword [esp + 0x270], esi
mov dword [esp + 0x254], 7
mov dword [esp + 0x250], eax
mov word [esp + 0x240], ax
jb 0x417443
mov ecx, dword [esp + 0x25c]
push ecx
call fcn.0042181b
add esp, 4
xor al, al
jmp 0x4175f2