Function at 0x100096a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100871b8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x100a7034]
mov ebx, ecx
mov ecx, dword [0x100a7038]
xor edi, edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], edi
cmp eax, ecx
je 0x10009710
push ecx
call fcn.1000a900
mov ecx, dword [0x100a7038]
mov esi, eax
mov eax, dword [ebp - 0x34]
add esp, 4
push eax
push ecx
mov eax, esi
call fcn.1000abe0
add esp, 8
mov dword [0x100a7038], esi
or eax, 0xffffffff
xor ecx, ecx
mov esi, 0x100a6ff8
call fcn.10003b20
or eax, 0xffffffff
xor ecx, ecx
mov esi, 0x100a7014
call fcn.10003b20
mov dword [ebp - 4], edi
cmp dword [ebx + 0x14], 8
jb 0x1000973b
mov eax, dword [ebx]
jmp 0x1000973d
mov eax, ebx
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
cmp esi, 0xffffffff
je 0x100099c4
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push edi
push edi
push esi
call ebx
cmp eax, edi
jl 0x100099bd
jne 0x10009787
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x100099c6
push edi
push edi
push edi
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea edx, [ebp - 0x20]
push edx
push 5
lea eax, [ebp - 0x1c]
push eax
push esi
call ebx
test eax, eax
je 0x100099bd
cmp dword [ebp - 0x20], 5
jne 0x100099bd
cmp dword [ebp - 0x1c], 0x434d5023
jne 0x100099bd
cmp byte [ebp - 0x18], 0x23
jne 0x100099bd
push edi
lea ecx, [ebp - 0x20]
push ecx
push 8
lea edx, [ebp - 0x48]
push edx
push esi
call ebx
test eax, eax
je 0x100099bd
cmp dword [ebp - 0x20], 8
jne 0x100099bd
push edi
lea eax, [ebp - 0x20]
push eax
push 2
lea ecx, [ebp - 0x24]
push ecx
push esi
call ebx
test eax, eax
je 0x100099bd
cmp dword [ebp - 0x20], 2
jne 0x100099bd
mov ax, word [ebp - 0x24]
cmp ax, di
jle 0x100099bd
movsx edx, ax
push edx
call fcn.1005f071
movsx ecx, word [ebp - 0x24]
add esp, 4
mov edi, eax
push 0
lea eax, [ebp - 0x20]
push eax
push ecx
push edi
push esi
mov dword [ebp - 0x28], edi
call ebx
test eax, eax
je 0x1000997b
movsx edx, word [ebp - 0x24]
cmp edx, dword [ebp - 0x20]
jne 0x1000997b
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea ecx, [ebp - 0x38]
push ecx
push esi
call ebx
test eax, eax
je 0x1000997b
cmp dword [ebp - 0x20], 4
jne 0x1000997b
cmp dword [ebp - 0x38], 1
jne 0x1000997b
push 0
lea edx, [ebp - 0x20]
push edx
push 4
lea eax, [ebp - 0x2c]
push eax
push esi
call ebx
test eax, eax
je 0x1000997b
cmp dword [ebp - 0x20], 4
jne 0x1000997b
mov eax, dword [ebp - 0x2c]
test eax, eax
js 0x1000997b
jle 0x1000994b
push eax
call fcn.1005f071
mov edx, dword [ebp - 0x2c]
add esp, 4
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edi, eax
push edx
push edi
push esi
mov dword [ebp - 0x30], edi
call ebx
test eax, eax
je 0x1000996e
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x20], eax
jne 0x1000996e
mov dword [ebp - 0x40], method.piy::CEncryptMethod.virtual_0
mov ebx, dword [ebp - 0x28]
push edi
push eax
mov byte [ebp - 4], 1
movsx eax, word [ebp - 0x24]
push edi
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.10022490
test al, al
jne 0x1000991a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.10067956
add esp, 4
push edi
call fcn.10067956
add esp, 4
jmp 0x100099c4
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, edi
call fcn.10009210
push edi
test al, al
jne 0x10009940
call fcn.10067956
add esp, 4
push ebx
call fcn.10067956
add esp, 4
jmp 0x100099c4
call fcn.10067956
mov edi, dword [ebp - 0x28]
add esp, 4
push edi
call fcn.10067956
add esp, 4
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x3c]
call fcn.10009570
mov al, 1
jmp 0x100099c6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x28]
push edx
jmp 0x10009904
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.10067956
add esp, 4
jmp 0x100099c4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret