Function at 0x10156070
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
jle 0x101560d6
mov eax, dword [ebp + 0x10]
cdq
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x14]
cmp eax, dword [ebp - 0x4c]
jg 0x101560be
jl 0x101560ad
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0x50]
jae 0x101560be
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
jmp 0x101560c8
mov eax, dword [ebp + 0x10]
cdq
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
jmp 0x101560e5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
cmp dword [ebp + 0x14], 0xcc
jl 0x101560f5
xor eax, eax
jmp 0x10156341
mov eax, dword [ebp + 0x14]
cdq
add eax, dword [ebp - 0x30]
adc edx, dword [ebp - 0x2c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0
jl 0x10156125
jg 0x10156113
cmp dword [ebp - 0x58], 1
jbe 0x10156125
mov eax, dword [ebp + 0x14]
cdq
add eax, dword [ebp - 0x30]
adc edx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
jmp 0x10156131
xor edx, edx
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], edx
push 0
mov eax, dword [ebp + 0x18]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 0
call fcn.10155e90
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1015615b
xor eax, eax
jmp 0x10156341
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x1015617a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1015633e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
and ecx, 1
je 0x101561de
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
and eax, 8
jne 0x101561cf
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
and edx, 1
je 0x101561b0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x44]
cmp dword [ecx], 1
jne 0x101561cf
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x40]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 8]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0xc]
sub eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x101561d6
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x10156201
mov ecx, 1
imul edx, ecx, 0xe8
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 0x18]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0xc]
sub ecx, eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [ebp - 0xc]
cdq
mov edi, dword [ebp - 0x30]
sub edi, eax
mov eax, dword [ebp - 0x2c]
sbb eax, edx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x64]
jg 0x101562c6
jl 0x1015623d
mov edx, dword [ebp - 0x60]
cmp edx, dword [ebp - 0x68]
jae 0x101562c6
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
and ecx, 1
je 0x10156297
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
and eax, 8
jne 0x10156288
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
and edx, 1
je 0x10156269
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x44]
cmp dword [ecx], 1
jne 0x10156288
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x40]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 8]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0xc]
sub eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x1015628f
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
jmp 0x101562ba
mov ecx, 1
imul edx, ecx, 0xe8
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 0x18]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0xc]
sub ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
jmp 0x101562da
mov eax, dword [ebp - 0xc]
cdq
mov ecx, dword [ebp - 0x30]
sub ecx, eax
mov eax, dword [ebp - 0x2c]
sbb eax, edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call fcn.10140da0
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x10156310
mov eax, dword [ebp - 8]
push eax
call fcn.10156940
add esp, 4
xor eax, eax
jmp 0x10156341
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x18]
and ecx, 2
je 0x10156339
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x20]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x20], eax
jmp 0x10156172
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret