Function at 0x10023b10
Capabilities:
Check for software breakpoints
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
push ebx
lea ecx, [eax - 0xb]
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], ecx
cmp eax, ecx
jbe case.0x10023bdc.4
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp - 4]
add eax, 0xffffffd8
mov dword [ebp - 0xc], eax
lea esp, [esp]
cmp eax, 0x16
ja case.0x10023b50.1
movzx eax, byte [eax + 0x10023db4]
jmp dword [eax*4 + 0x10023d84]
mov dword [ebp + 0x10], 0
jmp case.0x10023b50.1
mov ecx, dword [ebp + 8]
movzx ebx, word [ecx]
mov dword [ebp - 4], ebx
jmp case.0x10023b50.1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [esi]
push 0x1000dcf0
lea edx, [esi + 4]
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x10023d77
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10023d77
push eax
push 0xbc
push eax
push eax
call fcn.1001ed30
add esp, 0x10
call fcn.10023af0
jmp case.0x10023b50.1
lea edi, [ebp - 0x53]
dec ecx
pop esp
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
jmp case.0x10023b50.1
cmp dword [esi + 4], 0
jne 0x10023c44
xor eax, eax
cmp eax, 4
ja case.default.0x10023bdc
jmp dword [eax*4 + 0x10023dcc]
mov ecx, dword [ebp - 0x1c]
mov edx, ecx
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x20]
sar edx, 0x1f
mov dword [esi + 0xc], ecx
jmp case.default.0x10023bdc
mov ecx, dword [esi + 0x10]
shl ecx, 0x10
xor edx, edx
shld edx, ecx, 0x10
shl ecx, 0x10
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
jmp case.default.0x10023bdc
mov edx, dword [esi + 0xc]
or edx, dword [ebp - 0x20]
xor ecx, ecx
or ecx, dword [ebp - 0x1c]
xor ebx, ebx
add edx, dword [esi + 8]
adc ecx, ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
jmp case.default.0x10023bdc
mov edx, dword [esi + 8]
mov dword [ebp + 0x10], edx
inc eax
lea ecx, [eax + 0xc7]
cmp ecx, 0xcc
jb 0x10023bd7
jmp case.0x10023b50.1
mov eax, 0x5a
lea esp, [esp]
cmp eax, 0x5a
je 0x10023c60
cmp eax, 0x11e
je 0x10023d71
add eax, 0xc4
cmp eax, 0x1e2
jb 0x10023c50
jmp case.0x10023b50.1
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, ecx
dec eax
je 0x10023c88
dec eax
jne 0x10023c8f
mov dword [esi], eax
mov dword [esi + 8], ecx
jmp case.0x10023b50.1
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
jmp case.0x10023b50.1
xor eax, 0x8db1f680
mov ecx, dword [esi]
lea eax, [ebx + 4]
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
push 0x30
push ecx
call fcn.10020480
add esp, 0x10
test eax, eax
jg case.0x10023b50.1
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1c], 0
je case.0x10023b50.1
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x10023ce2
add word [eax], 0x20
lea edx, [ebp - 0x14]
push edx
push esi
push 0x75
push eax
mov dword [ebp - 0x14], 4
call fcn.10022640
add esp, 0x10
test ebx, ebx
je case.0x10023b50.1
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push esi
add edi, 4
push 0x75
push edi
mov dword [ebp - 0x14], ebx
call fcn.10022640
push esi
push edi
push 0x83
lea ecx, [ebp - 0x14]
push ecx
add edi, ebx
push edi
mov dword [ebp - 0x14], ebx
call fcn.10007f60
add esp, 0x24
add ebx, 0x20
mov dword [ebp - 4], ebx
jmp case.0x10023b50.1
mov edx, dword [ebp + 8]
push edx
push esi
push 0xe1
call fcn.10006710
add esp, 0xc
jmp case.0x10023b50.1
mov eax, dword [0x10040174]
mov dword [esi + 0x14], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
dec ecx
dec eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [ebp - 0x18]
ja 0x10023b40
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret