Function at 0x100081c0
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
xor al, al
xor cl, cl
mov byte [esp + 0x28], 0xe8
xor ebp, ebp
mov dword [esp + 0x29], 0
push edi
mov byte [esp + 0x24], 0xe9
mov dword [esp + 0x25], 0
mov word [esp + 0x34], 0x800f
mov dword [esp + 0x36], 0
mov byte [esp + 0x12], al
mov byte [esp + 0x13], cl
mov dword [esp + 0x14], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
nop dword [eax]
movzx edi, al
mov eax, dword [esi + 8]
add edi, dword [esi]
movzx ecx, cl
add eax, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.100084d0
add esp, 8
mov ebx, eax
test dword [esp + 0x54], 0x1000
mov dword [esp + 0x18], ebx
jne 0x100084c2
mov dl, byte [esp + 0x12]
mov ecx, edi
mov dword [esp + 0x1c], ecx
cmp dl, 5
jb 0x10008279
mov eax, edi
mov dword [esp + 0x14], 1
sub eax, dword [esp + 0x5c]
lea ecx, [esp + 0x24]
sub eax, 5
mov ebx, 5
mov dword [esp + 0x25], eax
jmp 0x100083c9
mov dl, byte [esp + 0x42]
cmp dl, 0xe8
jne 0x100082ac
mov dh, byte [esp + 0x3c]
lea ecx, [esp + 0x2c]
mov dl, byte [esp + 0x12]
mov ebx, 5
movzx eax, dh
sub eax, dword [esp + 0x5c]
add eax, 0xfffffffb
add eax, dword [esp + 0x4c]
add eax, edi
mov dword [esp + 0x2d], eax
jmp 0x100083cd
mov al, dl
and al, 0xfd
cmp al, 0xe9
jne 0x10008316
mov dh, byte [esp + 0x3c]
movzx ecx, dh
add ecx, edi
cmp dl, 0xeb
jne 0x100082cb
movsx eax, byte [esp + 0x4c]
add ecx, eax
jmp 0x100082cf
add ecx, dword [esp + 0x4c]
mov eax, dword [esi]
cmp eax, ecx
ja 0x100082f0
add eax, 5
cmp ecx, eax
jae 0x100082f0
mov dl, byte [esp + 0x12]
cmp ebp, ecx
cmovae ecx, ebp
mov ebp, ecx
mov ecx, dword [esp + 0x1c]
jmp 0x100083cd
sub ecx, dword [esp + 0x5c]
mov ebx, 5
mov dl, byte [esp + 0x12]
sub ecx, 5
cmp edi, ebp
mov dword [esp + 0x25], ecx
lea ecx, [esp + 0x24]
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jmp 0x100083cd
mov dh, byte [esp + 0x43]
mov bl, dl
and bl, 0xf0
cmp bl, 0x70
je 0x10008353
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x10008353
mov al, dh
and al, 0xf0
cmp al, 0x80
je 0x10008353
mov ebx, dword [esp + 0x18]
and dl, 0xfe
cmp dl, 0xc2
mov dl, byte [esp + 0x12]
jne 0x100083c9
cmp edi, ebp
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jmp 0x100083c9
movzx ecx, byte [esp + 0x3c]
add ecx, edi
cmp bl, 0x70
je 0x1000836d
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x1000836d
add ecx, dword [esp + 0x4c]
jmp 0x10008374
movsx eax, byte [esp + 0x4c]
add ecx, eax
mov eax, dword [esi]
cmp eax, ecx
ja 0x10008392
add eax, 5
cmp ecx, eax
jae 0x10008392
mov ebx, dword [esp + 0x18]
cmp ebp, ecx
cmovae ecx, ebp
mov ebp, ecx
mov ecx, dword [esp + 0x1c]
jmp 0x100083c5
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x100084c2
movzx eax, dl
cmp dl, 0xf
jne 0x100083a9
movzx eax, dh
sub ecx, dword [esp + 0x5c]
and al, 0xf
or al, 0x80
mov ebx, 6
sub ecx, 6
mov byte [esp + 0x35], al
mov dword [esp + 0x36], ecx
lea ecx, [esp + 0x34]
mov dl, byte [esp + 0x12]
mov dh, byte [esp + 0x3c]
cmp edi, ebp
jae 0x100083dc
movzx eax, dh
cmp ebx, eax
jne 0x100084c2
mov edi, dword [esp + 0x20]
lea eax, [edi + ebx]
cmp eax, 0x20
ja 0x100084c2
mov eax, dword [esi + 0x10]
cmp eax, 8
jae 0x100084c2
mov byte [eax + esi + 0x14], dl
mov eax, dword [esi + 0x10]
mov dl, byte [esp + 0x13]
push ebx
push ecx
mov byte [eax + esi + 0x1c], dl
mov eax, dword [esi + 8]
inc dword [esi + 0x10]
add eax, edi
push eax
call sub.MSVCRT20.dll_memcpy
mov cl, byte [esp + 0x1f]
add esp, 0xc
mov al, byte [esp + 0x12]
add cl, bl
add al, byte [esp + 0x3c]
cmp dword [esp + 0x14], 0
mov byte [esp + 0x13], cl
mov byte [esp + 0x12], al
je 0x10008210
cmp al, 5
jae 0x100084b5
mov ebx, dword [esi]
movzx edi, al
mov eax, 5
sub eax, edi
push eax
lea ebp, [ebx + edi]
push ebp
call fcn.10008d80
add esp, 8
test eax, eax
jne 0x100084b5
cmp byte [esp + 0x12], 2
jae 0x10008478
mov eax, 2
sub eax, edi
push eax
push ebp
call fcn.10008d80
add esp, 8
test eax, eax
je 0x100084c2
lea eax, [ebx - 5]
push eax
call fcn.10001e40
add esp, 4
test eax, eax
je 0x100084c2
mov eax, dword [esi]
mov dl, byte [eax - 5]
test dl, dl
je 0x1000849b
cmp dl, 0x90
je 0x1000849b
cmp dl, 0xcc
jne 0x100084c2
mov ecx, 1
add eax, 0xfffffffc
cmp byte [eax], dl
jne 0x100084c2
inc ecx
inc eax
cmp ecx, 5
jb 0x100084a3
mov dword [esi + 0xc], 1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret