Function at 0x10138600
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov ebp, dword [esp + 0x5c]
mov eax, dword [0x10588520]
xor eax, esp
mov dword [esp + 0x44], eax
mov byte [esp + 0x40], 0
mov dword [esp + 0x3c], 0xe8
mov byte [esp + 0x38], 0
mov dword [esp + 0x34], 0xe9
mov word [esp + 0x30], 0
mov dword [esp + 0x2c], 0x800f
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
mov dword [esp + 4], 0
xor edx, edx
xor ebx, ebx
nop dword [eax]
movzx esi, bl
add esi, dword [ebp]
mov dword [esp + 0xc], edx
movzx edi, dl
mov ebp, dword [ebp + 8]
add ebp, edi
lea eax, [esp + 0x10]
push eax
push esi
call fcn.10137570
add esp, 8
mov dword [esp + 8], eax
test byte [esp + 0x29], 0x10
jne 0x101388fe
cmp bl, 5
jb 0x101386c0
mov eax, esi
sub eax, ebp
add eax, 0xfffffffb
mov dword [esp + 0x35], eax
mov dword [esp + 8], 5
mov al, 1
mov dword [esp], eax
lea eax, [esp + 0x34]
cmp esi, dword [esp + 4]
jb 0x10138850
jmp 0x1013885f
movzx eax, byte [esp + 0x16]
cmp eax, 0xe8
jne 0x10138710
movzx eax, byte [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, esi
sub edx, ebp
add edx, eax
lea eax, [ecx + edx]
add eax, 0xfffffffb
mov dword [esp + 0x3d], eax
mov dword [esp + 8], 5
mov dword [esp], 0
lea eax, [esp + 0x3c]
cmp esi, dword [esp + 4]
jb 0x10138850
jmp 0x1013885f
mov edx, eax
and edx, 0xfffffffd
cmp edx, 0xe9
jne 0x1013872e
movzx edx, byte [esp + 0x10]
add edx, esi
cmp al, 0xeb
je 0x1013876d
mov ecx, dword [esp + 0x20]
jmp 0x10138772
mov edx, eax
and edx, 0xfffffff0
cmp edx, 0x70
sete dl
mov ecx, eax
and ecx, 0xfffffffc
cmp ecx, 0xe0
sete dh
or dh, dl
jne 0x1013875c
movzx ecx, byte [esp + 0x17]
and cl, 0xf0
cmp cl, 0x80
jne 0x1013882c
movzx ecx, byte [esp + 0x10]
add ecx, esi
test dh, dh
jne 0x101387b0
mov edx, dword [esp + 0x20]
jmp 0x101387b5
movsx ecx, byte [esp + 0x20]
add edx, ecx
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx]
cmp edx, ecx
jb 0x10138790
add ecx, 5
cmp edx, ecx
jae 0x10138790
mov ecx, dword [esp + 4]
cmp ecx, edx
cmovbe ecx, edx
jmp 0x101387d9
sub edx, ebp
add edx, 0xfffffffb
mov dword [esp + 0x35], edx
cmp esi, dword [esp + 4]
setae al
mov dword [esp], eax
mov dword [esp + 8], 5
jmp 0x101386ac
movsx edx, byte [esp + 0x20]
add ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov ecx, dword [esp]
cmp ecx, edx
jb 0x101387e6
add edx, 5
cmp ecx, edx
jae 0x101387e6
mov eax, ecx
mov ecx, dword [esp + 4]
cmp ecx, eax
cmovbe ecx, eax
mov dword [esp + 4], ecx
mov dword [esp], 0
jmp 0x10138843
mov ecx, eax
and al, 0xfc
cmp al, 0xe0
je 0x101388fe
cmp cl, 0xf
movzx eax, byte [esp + 0x17]
cmovne eax, ecx
and al, 0xf
or al, 0x80
mov byte [esp + 0x2d], al
mov eax, dword [esp]
sub eax, ebp
add eax, 0xfffffffa
mov dword [esp + 0x2e], eax
mov dword [esp + 8], 6
mov dword [esp], 0
lea eax, [esp + 0x2c]
cmp esi, dword [esp + 4]
jb 0x10138850
jmp 0x1013885f
and eax, 0xfffffffe
cmp eax, 0xc2
sete cl
cmp esi, dword [esp + 4]
setae al
and al, cl
mov dword [esp], eax
mov eax, esi
cmp esi, dword [esp + 4]
jae 0x1013885f
nop dword [eax + eax]
movzx ecx, byte [esp + 0x10]
cmp dword [esp + 8], ecx
jne 0x101388fe
mov ecx, dword [esp + 8]
lea edx, [ecx + edi]
cmp edx, 0x20
ja 0x101388fe
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx + 0x10]
cmp ecx, 8
jae 0x101388fe
mov esi, dword [esp + 0x5c]
mov byte [esi + ecx + 0x14], bl
mov ecx, dword [esi + 0x10]
mov ebp, ebx
mov ebx, dword [esp + 0xc]
mov byte [esi + ecx + 0x1c], bl
mov ebx, ebp
inc dword [esi + 0x10]
add edi, dword [esi + 8]
mov ecx, dword [esp + 8]
xchg esi, eax
rep movsb byte es:[edi], byte [esi]
xchg esi, eax
mov ebp, esi
add bl, byte [esp + 0x10]
cmp byte [esp], 0
je 0x10138660
mov esi, 1
cmp bl, 4
ja 0x10138900
movzx ecx, bl
mov eax, dword [ebp]
movzx edx, byte [eax + ecx]
test edx, edx
je 0x101388dc
cmp edx, 0xcc
je 0x101388dc
cmp edx, 0x90
jne 0x10138915
mov edi, 5
sub edi, ecx
cmp edi, 2
jb 0x10138900
mov edi, ecx
nop word [eax + eax]
cmp byte [eax + edi + 1], dl
jne 0x10138915
inc edi
cmp edi, 4
jne 0x101388f0
jmp 0x10138900
xor esi, esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.101ac85a
mov eax, esi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
cmp bl, 1
ja 0x10138948
xor esi, esi
test edx, edx
je 0x10138930
cmp edx, 0xcc
je 0x10138930
cmp edx, 0x90
jne 0x10138900
mov edi, 2
sub edi, ecx
cmp edi, 2
jb 0x10138948
cmp byte [eax + ecx + 1], dl
jne 0x10138900
inc ecx
cmp ecx, 1
jne 0x1013893c
add eax, 0xfffffffb
push eax
call fcn.10137520
add esp, 4
xor esi, esi
test eax, eax
je 0x10138900
mov eax, dword [ebp]
movzx ecx, byte [eax - 5]
test ecx, ecx
je 0x10138975
cmp ecx, 0xcc
je 0x10138975
cmp ecx, 0x90
jne 0x10138900
cmp byte [eax - 4], cl
jne 0x10138900
cmp byte [eax - 3], cl
jne 0x10138900
cmp byte [eax - 2], cl
jne 0x10138900
cmp byte [eax - 1], cl
jne 0x10138900
mov dword [ebp + 0xc], 1
mov esi, 1
jmp 0x10138900