Function at 0x40e960
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x421b88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebp
push esi
push edi
mov ebp, ecx
xor esi, esi
mov dword [esp + 0xd4], esi
call fcn.0040eec0
mov eax, dword [esp + 0xdc]
push esi
push esi
push 3
push esi
push 1
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
je 0x40ee4a
lea ecx, [esp + 0x18]
push esi
push ecx
push edi
mov ecx, ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], esi
call fcn.0040e8a0
test eax, eax
je 0x40eca3
mov edi, dword [esp + 0x1c]
push ebx
jmp 0x40e9e6
xor esi, esi
mov ebx, dword [ebp + 0x28]
mov ecx, dword [esp + 0x1c]
cmp ebx, 1
jae 0x40ea5a
mov eax, ecx
mov edx, 3
shr eax, 0x13
and eax, edx
cmp eax, edx
ja case.default.0x40ea02
jmp dword [eax*4 + 0x40ee80]
mov dword [ebp + 0x30], 1
jmp case.default.0x40ea02
mov dword [ebp + 0x30], esi
jmp case.default.0x40ea02
mov dword [ebp + 0x30], 2
jmp case.default.0x40ea02
mov dword [ebp + 0x30], edx
mov eax, ecx
shr eax, 0x11
and eax, edx
cmp eax, edx
ja case.default.0x40ea2e
jmp dword [eax*4 + 0x40ee90]
mov dword [ebp + 0x34], esi
jmp case.default.0x40ea2e
mov dword [ebp + 0x34], edx
jmp case.default.0x40ea2e
mov dword [ebp + 0x34], 2
jmp case.default.0x40ea2e
mov dword [ebp + 0x34], 1
mov edx, ecx
shr edx, 0x10
and edx, 1
mov dword [ebp + 0x38], edx
mov edx, dword [ebp + 0x34]
cmp edx, esi
jle 0x40eae5
mov eax, dword [ebp + 0x30]
cmp eax, 3
mov eax, edx
jne 0x40eaab
dec eax
je 0x40ea9a
dec eax
je 0x40ea89
dec eax
jne 0x40eae5
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov edi, dword [eax*4 + 0x42f1f0]
jmp 0x40eae5
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov edi, dword [eax*4 + 0x42f1b0]
jmp 0x40eae5
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov edi, dword [eax*4 + 0x42f170]
jmp 0x40eae5
dec eax
je 0x40ead6
dec eax
je 0x40eac5
dec eax
jne 0x40eae5
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov edi, dword [eax*4 + 0x42f2b0]
jmp 0x40eae5
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov edi, dword [eax*4 + 0x42f270]
jmp 0x40eae5
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov edi, dword [eax*4 + 0x42f230]
cmp edi, esi
jle 0x40eaed
add dword [esp + 0x18], edi
mov eax, dword [ebp + 0x30]
cmp eax, 3
jne 0x40eb22
mov eax, ecx
shr eax, 0xa
and eax, 3
sub eax, esi
je 0x40eb19
dec eax
je 0x40eb10
dec eax
jne 0x40eb84
mov dword [ebp + 0x40], 0x7d00
jmp 0x40eb84
mov dword [ebp + 0x40], 0xbb80
jmp 0x40eb84
mov dword [ebp + 0x40], 0xac44
jmp 0x40eb84
cmp eax, 2
jne 0x40eb54
mov eax, ecx
shr eax, 0xa
and eax, 3
sub eax, esi
je 0x40eb4b
dec eax
je 0x40eb42
dec eax
jne 0x40eb84
mov dword [ebp + 0x40], 0x3e80
jmp 0x40eb84
mov dword [ebp + 0x40], 0x5dc0
jmp 0x40eb84
mov dword [ebp + 0x40], 0x5622
jmp 0x40eb84
cmp eax, 1
jne 0x40eb84
mov eax, ecx
shr eax, 0xa
and eax, 3
sub eax, esi
je 0x40eb7d
dec eax
je 0x40eb74
dec eax
jne 0x40eb84
mov dword [ebp + 0x40], 0x1f40
jmp 0x40eb84
mov dword [ebp + 0x40], 0x2ee0
jmp 0x40eb84
mov dword [ebp + 0x40], 0x2b11
mov esi, dword [ebp + 0x40]
test esi, esi
je 0x40ec9c
mov eax, ecx
shr eax, 6
and eax, 3
cmp eax, 3
ja case.default.0x40eb9c
jmp dword [eax*4 + 0x40eea0]
mov dword [ebp + 0x44], 0
jmp case.default.0x40eb9c
mov dword [ebp + 0x44], 1
jmp case.default.0x40eb9c
mov dword [ebp + 0x44], 2
jmp case.default.0x40eb9c
mov dword [ebp + 0x44], 3
mov eax, ecx
shr eax, 3
and eax, 1
mov dword [ebp + 0x4c], eax
mov eax, ecx
shr eax, 2
and eax, 1
mov dword [ebp + 0x50], eax
mov eax, ecx
and eax, 3
cmp eax, 3
ja case.default.0x40ebe5
jmp dword [eax*4 + 0x40eeb0]
mov dword [ebp + 0x48], 0
jmp case.default.0x40ebe5
mov dword [ebp + 0x48], 1
jmp case.default.0x40ebe5
mov dword [ebp + 0x48], 2
jmp case.default.0x40ebe5
mov dword [ebp + 0x48], 3
cmp edx, 1
jne 0x40ec32
lea eax, [edi + edi*2]
shr ecx, 9
lea eax, [eax + eax*4]
and ecx, 1
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 5
cdq
idiv esi
add eax, ecx
shl eax, 2
jmp 0x40ec4c
lea eax, [edi + edi*4]
shr ecx, 9
lea eax, [eax + eax*8]
and ecx, 1
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 7
cdq
idiv esi
add eax, ecx
sub eax, 4
inc ebx
test edi, edi
mov dword [ebp + 0x28], ebx
je 0x40ec82
mov edx, edi
lea ecx, [eax + 4]
imul edx, edx, 0x3e8
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fmul qword [0x425dd8]
fild dword [esp + 0x14]
fdivp st(1)
fadd qword [esp + 0x24]
fstp qword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, ebp
call fcn.0040e8a0
test eax, eax
jne 0x40e9e4
mov edi, dword [esp + 0x10]
xor esi, esi
pop ebx
mov ecx, dword [ebp + 0x28]
cmp ecx, esi
jbe 0x40ecc9
mov eax, dword [ebp + 8]
xor edx, edx
or al, 2
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x14]
div ecx
fld qword [esp + 0x20]
mov dword [ebp + 0x3c], eax
call sub.MSVCRT.dll__ftol
mov dword [ebp + 0x2c], eax
push 2
push esi
push 0xffffffffffffff80
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40ee15
lea edx, [esp + 0x1c]
push esi
push edx
lea eax, [esp + 0x50]
push 0x80
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ee15
cmp dword [esp + 0x1c], 0x80
jne 0x40ee15
mov ecx, 3
mov edi, 0x42f2f0
lea esi, [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40ee11
mov ecx, 7
lea esi, [esp + 0x4b]
lea edi, [esp + 0x28]
mov byte [esp + 0x46], dl
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x28]
lea ecx, [ebp + 0x10]
push eax
movsw word es:[edi], word [esi]
call fcn.0041f84a
mov ecx, 7
lea esi, [esp + 0x69]
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [ebp + 0xc]
movsw word es:[edi], word [esi]
call fcn.0041f84a
mov ecx, 7
lea esi, [esp + 0x87]
lea edi, [esp + 0x28]
lea edx, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
push edx
lea ecx, [ebp + 0x14]
movsw word es:[edi], word [esi]
call fcn.0041f84a
mov eax, dword [esp + 0xa5]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [ebp + 0x1c]
mov byte [esp + 0x30], 0
mov dword [esp + 0x2c], eax
call fcn.0041f84a
mov al, byte [esp + 0xc5]
mov ecx, 7
test al, al
je 0x40edcf
lea esi, [esp + 0xa9]
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x28]
lea ecx, [ebp + 0x18]
push edx
movsw word es:[edi], word [esi]
call fcn.0041f84a
jmp 0x40ee09
lea esi, [esp + 0xa9]
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x28]
lea ecx, [ebp + 0x18]
push eax
call fcn.0041f84a
mov ecx, dword [esp + 0xc6]
mov edx, dword [esp + 0xc7]
and ecx, 0xff
and edx, 0xff
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x24], edx
mov eax, dword [ebp + 8]
or al, 1
mov dword [ebp + 8], eax
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xdc]
lea ecx, [ebp + 4]
push eax
call fcn.0041f85c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xdc]
mov dword [esp + 0xd4], 0xffffffff
call fcn.0041f78a
mov eax, 1
jmp 0x40ee63
lea ecx, [esp + 0xdc]
mov dword [esp + 0xd4], 0xffffffff
call fcn.0041f78a
xor eax, eax
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xcc
ret 4