Function at 0x5e6e90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x90
mov eax, dword [0x418a60]
push ebx
push ebp
push esi
and eax, 0xffff0000
xor esi, esi
cmp eax, 0x40000
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], esi
jbe 0x5e6ec5
mov ecx, dword [0x418bb8]
mov dword [esp + 0x10], ecx
jmp 0x5e6edc
mov eax, dword [0x418a5c]
mov ecx, dword [0x418a74]
neg eax
sbb eax, eax
not eax
and eax, ecx
mov dword [esp + 0x10], eax
call fcn.005e22c0
mov edx, dword [esp + 0xa4]
push edx
push 0x417e38
call fcn.005e8417
push 0x417dec
call fcn.005e8417
push 0x417d98
call fcn.005e8417
mov ebp, dword [esp + 0xbc]
add esp, 0x10
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0xa8]
cmp eax, 1
jne 0x5e6f2e
mov eax, dword [0x418a5c]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebx
call fcn.005e7ee9
push ebx
push 0x40
push 1
push ebp
call fcn.005e7d8d
mov eax, dword [ebp + 7]
mov di, word [ebp + 0x11]
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [esp + 0x14], edi
je 0x5e726f
lea eax, [ebp + 2]
push 3
push 0x416c24
push eax
call fcn.005e8ad0
add esp, 0xc
test eax, eax
jne 0x5e726f
mov ebx, dword [esp + 0x18]
push ebx
push 0x417d90
call fcn.005e8417
mov dx, word [ebp + 0x11]
push edx
call fcn.005e6910
xor eax, eax
xor edx, edx
mov al, byte [ebp + 0x15]
mov dword [esp + 0x58], 0
add esp, 0xc
mov cl, byte [eax + ebp + 0x16]
lea eax, [eax + ebp + 0x16]
mov byte [esp + 0x23], cl
mov byte [eax], 0
mov eax, dword [ebp + 0xb]
mov dl, byte [ebp]
mov ecx, dword [ebp + 7]
mov dword [esp + 0x48], eax
fild qword [esp + 0x48]
lea esi, [edx + ecx + 3]
test ebx, ebx
fmul dword [0x4140d0]
mov dword [esp + 0x3c], esi
jne 0x5e6fe9
cmp esi, 0xffff
jbe 0x5e6fe0
inc esi
jmp 0x5e6fe5
mov esi, 0x10000
mov dword [esp + 0x3c], esi
mov edx, dword [esp + 0x30]
sub esp, 8
add edx, esi
mov dword [esp + 0x48], esi
fstp qword [esp]
mov dword [esp + 0x38], edx
push eax
lea edx, [esp + 0x5c]
push 0x417968
push edx
call fcn.005e8b08
lea eax, [esp + 0x64]
push eax
push 0x417990
call fcn.005e8417
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 0
fild qword [esp + 0x40]
add esp, 0x14
lea ecx, [esp + 0x58]
fmul dword [0x4140d0]
fstp qword [esp]
push esi
push 0x417968
push ecx
call fcn.005e8b08
lea edx, [esp + 0x64]
push edx
push 0x417990
call fcn.005e8417
lea eax, [ebp + 0x16]
push eax
push 0x417954
call fcn.005e8417
mov cl, byte [esp + 0x47]
xor eax, eax
mov al, byte [ebp + 0x15]
add esp, 0x24
inc ebx
cmp di, 0x4001
mov byte [eax + ebp + 0x16], cl
mov dword [esp + 0x18], ebx
je 0x5e7094
cmp di, 0x4079
jne 0x5e7249
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
mov eax, dword [ebp + 0xb]
cmp di, 0x4001
jne 0x5e70a4
mov dword [esp + 0x2c], eax
jmp 0x5e70af
cmp di, 0x4079
jne 0x5e70af
mov dword [esp + 0x1c], eax
mov edi, 0x416dcc
lea eax, [ebp + 2]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x5e70df
test cl, cl
je 0x5e70db
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x5e70df
add eax, 2
add edi, 2
test cl, cl
jne 0x5e70b7
xor eax, eax
jmp 0x5e70e4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5e70fe
mov al, byte [ebp]
mov ecx, dword [esp + 0x10]
sub esi, eax
lea edx, [eax + ecx + 2]
sub esi, 3
mov dword [esp + 0x38], edx
jmp 0x5e7106
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
push 0x4167b4
push 0x416dbc
call fcn.005e8404
push esi
mov ebx, eax
call fcn.005e7e75
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0xb4]
push 0
push ecx
push edx
mov edi, eax
call fcn.005e7ee9
mov eax, dword [esp + 0xc0]
push eax
push esi
push 1
push edi
call fcn.005e7d8d
push ebx
push esi
push 1
push edi
call fcn.005e7c54
push ebx
call fcn.005e82b5
push edi
call fcn.005e7d5e
add esp, 0x40
cmp word [esp + 0x14], 0x4001
jne 0x5e7171
lea edx, [esp + 0x50]
mov edi, 0x417d80
jmp 0x5e7183
cmp word [esp + 0x14], 0x4079
jne 0x5e71a0
lea edx, [esp + 0x50]
mov edi, 0x417d74
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
call fcn.005e8490
add esp, 4
mov esi, 0x416dcc
lea eax, [ebp + 2]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x5e71dd
test cl, cl
je 0x5e71d9
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x5e71dd
add eax, 2
add esi, 2
test cl, cl
jne 0x5e71b5
xor eax, eax
jmp 0x5e71e2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5e7237
mov edi, 0x416dbc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [0x415a2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005e6340
lea ecx, [esp + 0x50]
push ecx
push 0x416b7c
call fcn.005e8462
mov eax, dword [0x4217cc]
add esp, 8
test eax, eax
je 0x5e7249
push eax
call fcn.005e82b5
add esp, 4
jmp 0x5e7249
lea edx, [esp + 0x50]
push edx
push 0x416dbc
call fcn.005e8462
add esp, 8
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x3c]
mov ecx, dword [0x418bb0]
add eax, esi
add ecx, 0xffffffc0
mov dword [esp + 0x10], eax
cmp eax, ecx
jb 0x5e6f15
mov ebx, dword [esp + 0xa8]
mov eax, dword [0x418bd4]
mov edi, dword [esp + 0x30]
test eax, eax
je 0x5e728d
mov edx, dword [0x418bb0]
push eax
push edx
push ebx
call fcn.005e6a80
add esp, 0xc
mov eax, dword [0x418a74]
push 0x4169a8
push 1
push eax
push ebx
call fcn.005e65e0
add esp, 0x10
cmp eax, 0x1e000
jae 0x5e72ae
push 0
jmp 0x5e72ce
mov ecx, dword [0x418a74]
push 0x41699c
push 1
push ecx
push ebx
call fcn.005e65e0
add esp, 0x10
cmp eax, 0x1e000
jae 0x5e72d7
push 1
push ebx
call fcn.005e6b10
add esp, 8
mov edx, dword [0x418a74]
push edx
push ebx
call fcn.005e33e0
mov ebp, eax
mov eax, dword [0x418a74]
add eax, 0x10000
push eax
push ebx
call fcn.005e33e0
mov ecx, dword [0x418be0]
add esp, 0x10
test ecx, ecx
mov dword [esp + 0x38], eax
jne 0x5e73db
test ebp, ebp
jne 0x5e7318
test eax, eax
je 0x5e73db
mov ecx, dword [esp + 0xa4]
push ecx
push 0x417d3c
call fcn.005e8417
mov edi, dword [esp + 0x34]
add esp, 8
xor esi, esi
test esi, esi
jne 0x5e733d
mov edi, dword [esp + 0x38]
jmp 0x5e7344
cmp esi, 1
jne 0x5e7344
mov edi, ebp
test edi, edi
je 0x5e73c0
lea edx, [edi + 0xc]
push 0
push edx
push ebx
call fcn.005e7ee9
push ebx
push 2
lea eax, [esp + 0x48]
push 1
push eax
call fcn.005e7d8d
add esp, 0x1c
test esi, esi
jne 0x5e7371
push 0x417d30
jmp 0x5e737b
cmp esi, 1
jne 0x5e7383
push 0x417d24
call fcn.005e8417
add esp, 4
mov ecx, dword [esp + 0x34]
and ecx, 0xffff
push ecx
push 0x417d1c
call fcn.005e8417
mov edx, dword [esp + 0x3c]
and edx, 0xffff
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fmul dword [0x4140d0]
fstp qword [esp]
push 0x417d10
call fcn.005e8417
add esp, 0xc
inc esi
cmp esi, 2
jl 0x5e7333
push 0x416a9c
call fcn.005e8417
mov edi, dword [esp + 0x34]
add esp, 4
push 0x417cec
call fcn.005e8417
mov eax, dword [0x418a5c]
add esp, 4
test eax, eax
jne 0x5e741f
mov eax, dword [0x418bb0]
mov esi, dword [esp + 0x40]
add eax, esi
push eax
push 0x417ce4
call fcn.005e8417
add esi, 0x20000
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], esi
fild qword [esp + 0x2c]
jmp 0x5e7456
mov ecx, dword [0x418bb0]
mov esi, dword [0x418bb8]
sub ecx, esi
push ecx
push 0x417ce4
call fcn.005e8417
mov edx, dword [0x418bb0]
mov esi, dword [0x418bb8]
sub edx, esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], edx
fild qword [esp + 0x2c]
fmul dword [0x4140d0]
fstp qword [esp]
push 0x417cd8
call fcn.005e8417
mov eax, dword [0x418bd4]
add esp, 0xc
add eax, edi
push eax
push 0x417cb0
call fcn.005e8417
mov ecx, dword [0x418bd4]
mov dword [esp + 0x30], 0
add ecx, edi
mov dword [esp + 0x2c], ecx
fild qword [esp + 0x2c]
fmul dword [0x4140d0]
fstp qword [esp]
push 0x417cd8
call fcn.005e8417
push 0x417c90
call fcn.005e8417
mov eax, dword [0x418a5c]
add esp, 0x10
test eax, eax
jne 0x5e74d7
mov esi, dword [0x418bd4]
mov ecx, dword [0x418bb0]
mov eax, dword [esp + 0x40]
sub esi, edi
add esi, ecx
add esi, eax
jmp 0x5e74ef
mov esi, dword [0x418bb0]
mov edx, dword [0x418bd4]
mov ecx, dword [0x418bb8]
sub esi, edx
sub esi, ecx
sub esi, edi
push esi
push 0x417ce4
call fcn.005e8417
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0
fild qword [esp + 0x2c]
fmul dword [0x4140d0]
fstp qword [esp]
push 0x417cd8
call fcn.005e8417
mov edx, dword [0x418a74]
push 0x416b38
push 0
push edx
push ebx
call fcn.005e65e0
add esp, 0x1c
test eax, eax
jne 0x5e7551
push 0x4169a8
push eax
mov eax, dword [0x418a74]
push eax
push ebx
call fcn.005e65e0
add esp, 0x10
test eax, eax
je 0x5e755e
push 0x417c60
call fcn.005e8417
add esp, 4
mov ecx, dword [0x418a74]
push 0x416990
push 1
push ecx
push ebx
call fcn.005e65e0
add esp, 0x10
cmp eax, 0x1e000
je 0x5e7707
mov edi, 0x416990
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffef
push ecx
push ebx
call fcn.005e7ee9
push ebx
push 2
lea edx, [esp + 0x48]
push 1
push edx
call fcn.005e7d8d
push ebx
push 2
lea eax, [esp + 0x68]
push 1
push eax
call fcn.005e7d8d
push 0x40
call fcn.005e7e75
mov ebp, dword [esp + 0x64]
add esp, 0x30
and ebp, 0xffff
mov esi, eax
lea ecx, [ebp - 0x10000]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
push 2
push edx
push ebx
call fcn.005e7ee9
mov edi, 0x41614c
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 1
push esi
call fcn.005e7d8d
mov edi, 0x41614c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41614c
push esi
call fcn.005e8ad0
add esp, 0x28
test eax, eax
je 0x5e763d
mov eax, dword [esp + 0x44]
and eax, 0xffff
cmp ebp, eax
jae 0x5e76fe
mov eax, dword [esp + 0x14]
inc ebp
inc eax
mov dword [esp + 0x14], eax
jmp 0x5e75d8
mov edi, 0x41614c
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x30
add ecx, esi
push 1
push ecx
call fcn.005e7d8d
push 0x41614c
push 0x417c54
call fcn.005e8417
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
mov al, byte [esi + ecx]
lea ebp, [esi + ecx]
test al, al
je 0x5e76d1
push ebp
push 0x417c50
call fcn.005e8417
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 8
jbe 0x5e76b0
inc dword [esp + 0x18]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
add edx, ecx
inc eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
jmp 0x5e76d5
inc dword [esp + 0x10]
cmp dword [esp + 0x18], 2
jl 0x5e767f
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
and edx, 0xffff
and eax, 0xffff
push edx
push eax
push 0x417c20
call fcn.005e8417
add esp, 0xc
push esi
call fcn.005e7d5e
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5e77c5
mov ebp, eax
push ebp
call fcn.005e7e75
push 0x8000
push 0x417d74
mov edi, eax
call fcn.005ec51f
mov esi, eax
push ebp
push edi
push esi
mov dword [esp + 0x34], esi
call fcn.005e84c5
push 4
lea ecx, [edi + 0xbc]
push 0x4160c8
push ecx
call fcn.005e8ad0
add esp, 0x24
test eax, eax
jne 0x5e77ac
cmp word [edi + 0xc0], ax
je 0x5e77ac
push 0x417c0c
call fcn.005e8417
add esp, 4
lea esi, [edi + 0xc2]
mov ebp, 2
mov al, byte [esi]
xor ecx, ecx
test al, al
je 0x5e778b
add esi, 2
mov byte [esp + ecx + 0x50], al
inc ecx
mov al, byte [esi]
test al, al
jne 0x5e777d
lea edx, [esp + 0x50]
add esi, 2
push edx
push 0x417c08
mov byte [esp + ecx + 0x58], 0
call fcn.005e8417
add esp, 8
dec ebp
jne 0x5e7775
mov esi, dword [esp + 0x1c]
push edi
call fcn.005e7d5e
push esi
call fcn.005ea245
push 0x417d74
call fcn.005e8490
add esp, 0xc
push 0x10000
call fcn.005e7e75
mov esi, eax
mov eax, dword [0x418a70]
push 0
push eax
push ebx
call fcn.005e7ee9
push ebx
push 0x40
push 1
push esi
call fcn.005e7d8d
mov edi, 0x416e5c
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ax, word [ecx + esi + 0x1b]
mov ecx, dword [0x418a60]
mov edx, ecx
and edx, 0xffff0000
cmp edx, 0x40000
jbe 0x5e782a
mov ecx, dword [0x418ba4]
and ecx, 0xf0000
and eax, 0xfff0
jmp 0x5e7835
mov edx, dword [0x418a64]
shl edx, 0x10
sub ecx, edx
add eax, ecx
push 0
push eax
push ebx
call fcn.005e7ee9
push ebx
push 0x8000
push 1
push esi
call fcn.005e7d8d
push 0x417bcc
xor edi, edi
call fcn.005e8417
add esp, 0x20
xor ecx, ecx
mov eax, 0x40
mov edx, dword [esi + eax]
add eax, 4
add ecx, edx
cmp eax, 0x740
jl 0x5e7864
cmp ecx, dword [esi + 0xc]
jne 0x5e78a0
push 0x417b78
call fcn.005e8417
push 0x417b24
call fcn.005e8417
push 0x417ad0
call fcn.005e8417
add esp, 0xc
mov ebp, 0x28
jmp 0x5e78bc
push 0x417a7c
call fcn.005e8417
push 0x417a28
call fcn.005e8417
add esp, 8
mov ebp, 0x12
cmp byte [esi], 0xff
je 0x5e78ed
cmp byte [edi + esi], 0
je 0x5e78ed
push 0x800
push ebp
push edi
push esi
call fcn.005e6ca0
add edi, 0x800
add esp, 0x10
cmp edi, 0x8000
mov ebp, eax
jae 0x5e78ed
cmp byte [edi + esi], 0xff
jne 0x5e78c1
push esi
call fcn.005e7d5e
mov edi, dword [esp + 0x30]
add esp, 4
test edi, edi
je 0x5e796f
push edi
call fcn.005e7e75
mov esi, eax
push 0x8000
push 0x417d80
mov dword [esp + 0x38], esi
call fcn.005ec51f
push edi
push esi
push eax
mov dword [esp + 0x34], eax
call fcn.005e84c5
add esp, 0x18
xor esi, esi
test edi, edi
jle 0x5e794e
mov eax, dword [esp + 0x2c]
push 0x800
push ebp
push esi
push eax
call fcn.005e6ca0
add esi, 0x800
add esp, 0x10
cmp esi, edi
mov ebp, eax
jl 0x5e792e
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.005e7d5e
mov edx, dword [esp + 0x20]
push edx
call fcn.005ea245
push 0x417d80
call fcn.005e8490
add esp, 0xc
mov al, byte [0x418bc5]
test al, al
je 0x5e7a04
mov eax, dword [fcn.00418bd0]
push 0
push eax
push ebx
call fcn.005e7ee9
mov ecx, dword [0x418bd4]
push ecx
call fcn.005e7e75
mov edx, dword [0x418bac]
mov ebx, eax
mov eax, dword [0x418bd4]
push edx
push eax
push 1
push ebx
call fcn.005e7d8d
mov esi, dword [ebx + 0x20]
add esp, 0x20
xor edi, edi
test esi, esi
jne 0x5e79be
mov esi, 0x800
mov eax, dword [0x418bd4]
lea ecx, [esi - 1]
cmp ecx, eax
jae 0x5e79fb
push esi
push ebp
push edi
push ebx
call fcn.005e6ca0
add edi, esi
add esp, 0x10
mov ebp, eax
mov esi, dword [ebx + edi + 0x20]
test esi, esi
jne 0x5e79e9
mov esi, 0x800
jmp 0x5e79ee
cmp esi, 0xffffffff
je 0x5e79fb
mov eax, dword [0x418bd4]
lea edx, [edi + esi - 1]
cmp edx, eax
jb 0x5e79ca
push ebx
call fcn.005e7d5e
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret