Function at 0x10024e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10086df8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x100a5c90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x38]
lea esi, [edi + 0x38]
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
xor ebx, ebx
push esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
call fcn.100258e0
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + 4]
push edx
lea ecx, [esi + 0x10]
call fcn.1003c420
mov eax, dword [esi + 0x14]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x14]
mov dword [eax], eax
mov eax, dword [esi + 0x14]
mov dword [eax + 8], eax
mov dword [esi + 0x18], ebx
or eax, 0xffffffff
xor ecx, ecx
mov esi, edi
call fcn.10003b20
lea esi, [edi + 0x1c]
or eax, 0xffffffff
xor ecx, ecx
call fcn.10003b20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x10024f05
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
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 0x100251b5
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
jl 0x100251ae
jne 0x10024f66
mov ebx, dword [ebp + 0xc]
mov ecx, edi
call fcn.10024a80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x18]
push eax
push 4
lea ecx, [ebp - 0x28]
push ecx
push esi
call edi
test eax, eax
je 0x100251ae
cmp dword [ebp - 0x18], 4
jne 0x100251ae
cmp dword [ebp - 0x28], 0x23535023
jne 0x100251ae
push ebx
lea edx, [ebp - 0x18]
push edx
push 8
lea eax, [ebp - 0x40]
push eax
push esi
call edi
test eax, eax
je 0x100251ae
cmp dword [ebp - 0x18], 8
jne 0x100251ae
push ebx
lea ecx, [ebp - 0x18]
push ecx
push 2
lea edx, [ebp - 0x14]
push edx
push esi
call edi
test eax, eax
je 0x100251ae
cmp dword [ebp - 0x18], 2
jne 0x100251ae
mov ax, word [ebp - 0x14]
cmp ax, bx
jle 0x100251ae
cwde
push eax
call fcn.1005f071
movsx edx, word [ebp - 0x14]
add esp, 4
push 0
lea ecx, [ebp - 0x18]
push ecx
mov ebx, eax
push edx
push ebx
push esi
mov dword [ebp - 0x1c], ebx
call edi
test eax, eax
je 0x1002516c
movsx eax, word [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jne 0x1002516c
push 0
lea ecx, [ebp - 0x18]
push ecx
push 4
lea edx, [ebp - 0x2c]
push edx
push esi
call edi
test eax, eax
je 0x1002516c
cmp dword [ebp - 0x18], 4
jne 0x1002516c
cmp dword [ebp - 0x2c], 1
jne 0x1002516c
push 0
lea eax, [ebp - 0x18]
push eax
push 4
lea ecx, [ebp - 0x20]
push ecx
push esi
call edi
test eax, eax
je 0x1002516c
cmp dword [ebp - 0x18], 4
jne 0x1002516c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10025119
push eax
call fcn.1005f071
add esp, 4
push 0
mov ebx, eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
push edx
push eax
push ebx
push esi
mov dword [ebp - 0x24], ebx
call edi
test eax, eax
je 0x10025151
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x18], eax
jne 0x10025151
mov dword [ebp - 0x30], method.piy::CEncryptMethod.virtual_0
mov edi, dword [ebp - 0x1c]
push ebx
push eax
mov byte [ebp - 4], 1
movsx ecx, word [ebp - 0x14]
push ebx
push ecx
push edi
lea ecx, [ebp - 0x30]
call fcn.10022490
test al, al
jne 0x100250e8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.10067956
push ebx
call fcn.10067956
add esp, 8
jmp 0x100251b5
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
push edx
push ebx
push eax
call fcn.100244d0
push ebx
test al, al
jne 0x1002510e
call fcn.10067956
push edi
call fcn.10067956
add esp, 8
jmp 0x100251b5
call fcn.10067956
mov ebx, dword [ebp - 0x1c]
add esp, 4
push ebx
call fcn.10067956
add esp, 4
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.10024a80
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10067956
push ebx
call fcn.10067956
add esp, 8
jmp 0x100251b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.10067956
add esp, 4
jmp 0x100251b5
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 esp, ebp
pop ebp
ret 8