Function at 0x10013bf0
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x58
xor eax, eax
push ebx
mov ebx, dword [esp + 0x60]
push ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [0x10021f00]
push esi
xor ebp, ebp
push edi
mov edi, dword [ebx + 0x14]
cmp edi, ebp
mov dword [esp + 0x18], eax
mov eax, 0x80000000
mov dword [esp + 0x38], ebp
mov dword [esp + 0x50], ebp
mov dword [0x10021f00], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
jne 0x10013c69
lea ecx, [esp + 0x20]
mov dword [ebx + 0x14], ecx
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.10018680
push ebx
call fcn.10013910
add esp, 0xc
cmp byte [ebx + 0x10], 8
mov esi, eax
jne 0x10013c9b
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.10018660
add esp, 8
mov al, byte [ebx + 0x10]
cmp al, 5
je 0x10013ca9
cmp al, 6
je 0x10013ca9
mov dword [ebx + 0x14], ebp
cmp al, 8
jne 0x10013cba
mov eax, dword [ebx + 4]
push ebp
push eax
call fcn.10015220
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.1000f530
add eax, 0xffffffc3
add esp, 8
cmp eax, 0xcd
ja case.0x10013ce1.62
movzx eax, byte [eax + 0x1001429c]
jmp dword [eax*4 + 0x10014268]
mov ebp, 0x100149e0
mov dword [esp + 0x6c], ebp
jmp 0x10013d7e
mov ebp, 0x10014a00
mov dword [esp + 0x6c], ebp
jmp 0x10013d7e
mov ebp, 0x10014a20
mov dword [esp + 0x6c], ebp
jmp 0x10013d7e
mov ebp, fcn.10014940
mov dword [esp + 0x6c], ebp
jmp 0x10013d7e
mov ebp, 0x10014960
mov dword [esp + 0x6c], ebp
jmp 0x10013d7e
mov ebp, 0x100148e0
mov dword [esp + 0x6c], ebp
jmp 0x10013d7e
mov ebp, 0x10014900
mov dword [esp + 0x6c], ebp
jmp 0x10013d7e
mov ebp, 0x10014920
mov dword [esp + 0x6c], ebp
jmp 0x10013d7e
mov ebp, 0x100149c0
mov dword [esp + 0x6c], ebp
jmp 0x10013d7e
mov ebp, 0x100149a0
mov dword [esp + 0x6c], ebp
jmp 0x10013d7e
mov ebp, 0x10014980
mov dword [esp + 0x6c], ebp
jmp 0x10013d7e
cmp word [0x100223c0], bp
mov dword [esp + 0x6c], ebp
je 0x10013d7e
push 0xd3
call fcn.10016180
add esp, 4
mov al, byte [ebx + 0x10]
cmp al, 6
je 0x10013dfa
cmp al, 3
je 0x10013d8d
cmp al, 4
jne 0x10013de4
test ebp, ebp
je 0x10013da3
push 0x17
call fcn.10016180
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [ebx]
cmp word [eax + 0x50], 0
mov esi, dword [eax + 0x4c]
jle 0x10013dc8
push eax
call fcn.1000cb90
push eax
call fcn.100100d0
add esp, 8
test eax, eax
jle 0x10013dcc
lea ecx, [eax + 1]
imul esi, ecx
test esi, esi
jne 0x10013dfa
mov edx, dword [ebx]
add edx, 8
push edx
push 0x2e
call fcn.10016180
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
test esi, esi
jne 0x10013dfa
push 0x16
call fcn.10016180
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [ebx]
test byte [eax + 0x36], 8
jne 0x10013de8
mov dword [0x100223d8], 0
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x64], eax
mov al, byte [ebx + 0x10]
cmp al, 5
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x54], edx
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov dword [ebx + 0x14], edi
je 0x10013ee4
cmp al, 6
je 0x10013ee4
cmp al, 3
je 0x10013ee4
cmp al, 4
je 0x10013ee4
test ebp, ebp
je 0x10013e7d
push ebx
call fcn.10014ec0
push ebx
push ebp
lea edi, [esp + 0x44]
mov eax, fcn.10013bf0
call fcn.10010830
add esp, 0xc
jmp 0x10013f80
lea ecx, [esp + 0x38]
push ecx
call fcn.10013bf0
add esp, 4
test eax, eax
je 0x10013e9d
lea edx, [esp + 0x38]
push edx
call fcn.10014ec0
add esp, 4
jmp 0x10013ea9
cmp byte [esp + 0x48], 1
jne 0x10013ea9
mov byte [esp + 0x48], 7
lea eax, [esp + 0x38]
push eax
call fcn.1000fd90
mov cl, byte [esp + 0x4c]
add esp, 4
cmp cl, 1
jne 0x10013f84
cmp byte [esp + 0x60], cl
jne 0x10013f84
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x38]
jne 0x100141bf
add eax, 8
push eax
jmp 0x10013f73
test ebp, ebp
je 0x10013ef8
push 0
call fcn.10014790
push ebx
call fcn.10014ec0
add esp, 8
lea ecx, [esp + 0x2c]
push ebx
push ebp
lea edi, [esp + 0x40]
mov eax, fcn.10013bf0
mov dword [esp + 0x54], ecx
call fcn.10010830
mov cl, byte [esp + 0x50]
add esp, 8
cmp cl, 5
je 0x10013f29
cmp cl, 6
je 0x10013f29
xor eax, eax
mov dword [esp + 0x4c], eax
jmp 0x10013f2d
mov eax, dword [esp + 0x4c]
test ebp, ebp
je 0x10013f3d
push 1
call fcn.100147d0
add esp, 4
jmp 0x10013f80
mov esi, dword [esp + 0x64]
test esi, esi
je 0x10013f84
test eax, eax
je 0x10013f84
cmp byte [esp + 0x60], cl
jne 0x10013f84
mov edx, dword [esp + 0x50]
cmp edx, dword [esp + 0x38]
jne 0x10013f84
mov edi, dword [esi]
cmp edi, dword [eax]
jne 0x10013f84
mov edi, dword [esi + 4]
cmp edi, dword [eax + 4]
jne 0x10013f84
mov esi, dword [esi + 8]
cmp esi, dword [eax + 8]
jne 0x10013f84
add edx, 8
push edx
push 0xe2
call fcn.10016180
add esp, 8
mov cl, byte [esp + 0x48]
mov dl, byte [esp + 0x60]
cmp dl, 3
mov eax, dword [esp + 0x54]
je 0x10013fd5
cmp dl, 4
je 0x10013fd5
cmp dl, 5
je 0x10013fa4
cmp dl, 6
jne 0x100141ab
cmp eax, 1
jle 0x100141ab
mov esi, dword [esp + 0x50]
cmp word [esi + 0x50], 0
jne 0x100141ab
cmp dword [esp + 0x6c], 0
jne 0x100141ab
cmp cl, 3
je 0x10013fd5
cmp cl, 4
jne 0x100141ab
mov ebp, dword [esp + 0x50]
mov ebp, dword [ebp + 0x4c]
xor esi, esi
cmp dl, 5
mov edi, 1
mov dword [esp + 0x14], ebp
je 0x10013ff1
cmp dl, 6
jne 0x10014004
test eax, eax
jle 0x10014004
mov edx, dword [esp + 0x50]
cmp word [edx + 0x50], 0
jne 0x10014004
mov dword [esp + 0x14], eax
cmp cl, 3
je 0x10014030
cmp cl, 4
je 0x10014030
mov edx, dword [esp + 0x38]
test edx, edx
je 0x1001401e
mov eax, dword [esp + 0x3c]
test eax, eax
jg 0x10014038
mov eax, dword [esp + 0x50]
add eax, 8
push eax
push 0x21
call fcn.10016180
add esp, 8
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
test edx, edx
je 0x10014082
test eax, eax
jne 0x10014049
mov eax, dword [edx + 0x4c]
mov dword [esp + 0x10], eax
jmp 0x1001406a
mov dword [esp + 0x10], eax
cmp word [edx + 0x50], 0
je 0x1001406a
add edx, 8
push edx
push 0x1c
call fcn.10016180
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
add esp, 8
movsx ebp, word [edx + 0x50]
test ebp, ebp
mov esi, dword [edx + 0x44]
jne 0x1001409d
test esi, esi
jne 0x1001409d
mov ecx, dword [esp + 0x50]
cmp dword [ecx + 0x44], ebp
jmp 0x10014099
xor ebp, ebp
test eax, eax
mov dword [esp + 0x10], eax
jge 0x1001409d
mov ecx, dword [esp + 0x50]
neg eax
mov dword [esp + 0x10], eax
cmp dword [ecx + 0x44], ebp
jne 0x1001409d
xor edi, edi
mov ecx, dword [esp + 0x50]
movsx ecx, word [ecx + 0x50]
cmp ecx, ebp
je 0x100140bb
push 0x30
call fcn.10016180
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jl 0x10014199
test edi, edi
je 0x100140d3
cmp ecx, eax
jg 0x10014199
test eax, eax
je 0x10014199
cmp byte [esp + 0x60], 5
je 0x10014119
mov edi, dword [esp + 0x50]
mov ecx, dword [edi + 0x44]
cmp ecx, esi
je 0x10014119
test ecx, ecx
jne 0x100140f9
test esi, 0x40000000
je 0x10014119
test edx, edx
lea eax, [edx + 8]
jne 0x10014103
lea eax, [edi + 8]
push eax
push 0xe5
call fcn.10016180
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
add esp, 8
test ebp, ebp
jle 0x10014187
mov edi, dword [esp + 0x50]
mov esi, edx
push edi
call fcn.1000cb90
push esi
mov edi, eax
call fcn.1000cb90
mov edx, dword [edi + 0x4c]
mov esi, eax
add esp, 8
cmp edx, dword [esi + 0x4c]
je 0x1001414a
push 0x2f
call fcn.10016180
add esp, 4
jmp 0x10014171
mov ecx, dword [esi + 0x44]
mov eax, dword [edi + 0x44]
cmp eax, ecx
je 0x10014171
test eax, eax
jne 0x10014160
test ecx, 0x40000000
je 0x10014171
lea eax, [esi + 8]
push eax
push 0xe5
call fcn.10016180
add esp, 8
sub ebp, 1
jne 0x10014123
mov ecx, dword [esp + 0x50]
push ecx
call fcn.100100d0
add esp, 4
mov dword [esp + 0x10], eax
lea edx, [eax*4]
push edx
call fcn.10015160
add esp, 4
jmp 0x100141e9
push 0x2f
call fcn.10016180
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
cmp cl, 3
je 0x100141b5
cmp cl, 4
jne 0x100141bf
push 6
call fcn.10016180
add esp, 4
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x54]
push ecx
push 2
push edx
push eax
push 0
call fcn.10010270
lea ecx, [esp + 0x68]
push ecx
call fcn.10015020
add esp, 0x1c
cmp dword [esp + 0x6c], 0
jne 0x10014215
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
je 0x10014215
test eax, eax
jne 0x10014208
test ecx, 0x40000000
je 0x10014215
push 0xd5
call fcn.10016180
add esp, 4
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10014228
push 4
push eax
call fcn.1000ca40
add esp, 8
mov edx, dword [esp + 0x18]
pop edi
pop esi
mov dword [0x100223c4], 1
pop ebp
mov byte [ebx + 0x10], 7
mov dword [0x10021f00], edx
xor eax, eax
pop ebx
add esp, 0x58
ret
call fcn.1000c330
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x14], edi
pop edi
mov dword [0x10021f00], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret