Function at 0x10155e90
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x18]
and ecx, 6
mov dword [ebp + 0x18], ecx
mov edx, dword [ebp + 0x18]
and edx, 2
je 0x10155eca
cmp dword [ebp + 8], 0
je 0x10155eca
mov eax, dword [ebp + 0x18]
and eax, 0xfffffffd
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x1c], 0
jne 0x10155edb
mov ecx, dword [0x104060a0]
mov dword [ebp - 0x14], ecx
jmp 0x10155ee2
mov dword [ebp - 0x14], 1
cmp dword [ebp + 0xc], 0
jle 0x10156013
cmp dword [ebp + 0x1c], 0
jne 0x10155efb
cmp dword [ebp + 0xc], 0x800
jge 0x10155f11
mov edx, dword [ebp - 0x14]
sub edx, 1
imul eax, edx, 0xe8
add eax, 0xcc
cmp dword [ebp + 0xc], eax
jle 0x10155f3e
movzx ecx, word [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.10155cb0
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10155dd0
add esp, 8
mov dword [ebp - 0xc], 0x800
jmp 0x10155fa0
mov edx, dword [ebp + 0x18]
and edx, 2
je 0x10155f74
movzx eax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10155cb0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0xcc
jge 0x10155f6b
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
jmp 0x10155f72
mov dword [ebp - 0xc], 0xcc
jmp 0x10155fa0
movzx eax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10155d10
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0xe8
jge 0x10155f99
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
jmp 0x10155fa0
mov dword [ebp - 0xc], 0xe8
cmp dword [ebp - 8], 0
jne 0x10155fbf
cmp dword [ebp - 0x10], 0
je 0x10155fb8
mov eax, dword [ebp - 0x10]
push eax
call fcn.10156940
add esp, 4
xor eax, eax
jmp 0x1015606c
cmp dword [ebp + 0x1c], 0
je 0x10155fe0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x18]
jge 0x10155fe0
mov edx, dword [ebp - 8]
push edx
call fcn.10156940
add esp, 4
xor eax, eax
jmp 0x1015606c
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
cmp dword [ebp - 4], 0
je 0x10155ff9
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
jmp 0x10155fff
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x18]
and edx, 0xfffffffd
mov dword [ebp + 0x18], edx
jmp 0x10155ee2
mov eax, dword [ebp + 0x18]
and eax, 4
je 0x1015602a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
or edx, 4
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], edx
cmp dword [ebp + 8], 0
je 0x10156063
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jmp 0x10156040
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0
je 0x1015604a
jmp 0x10156038
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
and edx, 0xfffffffb
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], edx
jmp 0x10156069
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret