Function at 0x10045040
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1006a89c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor al, al
push esi
xor cl, cl
mov byte [ebp - 0x1c], 0xe8
push edi
xor edi, edi
mov dword [ebp - 0x1b], 0
mov byte [ebp - 0xc], 0xe9
mov dword [ebp - 0xb], 0
mov word [ebp - 0x14], 0x800f
mov dword [ebp - 0x12], 0
mov byte [ebp - 0x39], al
mov byte [ebp - 0x3a], cl
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x40], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
movzx esi, al
mov eax, dword [ebx + 8]
add esi, dword [ebx]
movzx ecx, cl
add eax, ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.10043fc0
add esp, 8
mov ecx, eax
test dword [ebp - 0x20], 0x1000
mov dword [ebp - 0x44], ecx
jne 0x10045308
cmp byte [ebp - 0x39], 5
mov dword [ebp - 0x48], esi
jb 0x100450eb
mov eax, esi
mov dword [ebp - 0x40], 1
sub eax, dword [ebp - 0x4c]
mov ecx, 5
sub eax, 5
mov dword [ebp - 0xb], eax
lea eax, [ebp - 0xc]
jmp 0x10045207
mov dl, byte [ebp - 0x32]
cmp dl, 0xe8
jne 0x10045112
movzx eax, byte [ebp - 0x38]
mov ecx, 5
sub eax, dword [ebp - 0x4c]
add eax, 0xfffffffb
add eax, dword [ebp - 0x28]
add eax, esi
mov dword [ebp - 0x1b], eax
lea eax, [ebp - 0x1c]
jmp 0x10045207
mov al, dl
and al, 0xfd
cmp al, 0xe9
jne 0x1004516d
movzx ecx, byte [ebp - 0x38]
add ecx, esi
cmp dl, 0xeb
jne 0x1004512d
movsx eax, byte [ebp - 0x28]
add ecx, eax
jmp 0x10045130
add ecx, dword [ebp - 0x28]
mov eax, dword [ebx]
cmp eax, ecx
ja 0x1004514f
add eax, 5
cmp ecx, eax
jae 0x1004514f
cmp edi, ecx
cmovae ecx, edi
mov edi, ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x50], edi
jmp 0x1004520d
sub ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0xc]
sub ecx, 5
cmp esi, edi
mov dword [ebp - 0xb], ecx
mov ecx, 5
sbb edx, edx
inc edx
mov dword [ebp - 0x40], edx
jmp 0x10045207
mov dh, byte [ebp - 0x31]
mov ah, dl
and ah, 0xf0
cmp ah, 0x70
je 0x1004519c
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x1004519c
mov al, dh
and al, 0xf0
cmp al, 0x80
je 0x1004519c
and dl, 0xfe
cmp dl, 0xc2
jne 0x1004520d
cmp esi, edi
sbb edx, edx
inc edx
mov dword [ebp - 0x40], edx
jmp 0x1004520d
mov al, byte [ebp - 0x38]
movzx ecx, al
add ecx, esi
cmp ah, 0x70
je 0x100451b6
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x100451b6
add ecx, dword [ebp - 0x28]
jmp 0x100451bc
movsx eax, byte [ebp - 0x28]
add ecx, eax
mov eax, dword [ebx]
cmp eax, ecx
ja 0x100451d8
add eax, 5
cmp ecx, eax
jae 0x100451d8
cmp edi, ecx
cmovae ecx, edi
mov edi, ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x50], edi
jmp 0x1004520d
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x10045308
movzx eax, dl
cmp dl, 0xf
jne 0x100451ef
movzx eax, dh
sub ecx, dword [ebp - 0x4c]
and al, 0xf
or al, 0x80
sub ecx, 6
mov byte [ebp - 0x13], al
lea eax, [ebp - 0x14]
mov dword [ebp - 0x12], ecx
mov ecx, 6
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
cmp esi, edi
jae 0x1004521d
movzx eax, byte [ebp - 0x38]
cmp ecx, eax
jne 0x10045308
mov esi, dword [ebp - 0x54]
lea eax, [esi + ecx]
cmp eax, 0x20
ja 0x10045308
mov eax, dword [ebx + 0x10]
cmp eax, 8
jae 0x10045308
mov dl, byte [ebp - 0x39]
mov byte [eax + ebx + 0x14], dl
mov eax, dword [ebx + 0x10]
mov dl, byte [ebp - 0x3a]
mov byte [eax + ebx + 0x1c], dl
mov edi, dword [ebx + 8]
inc dword [ebx + 0x10]
add edi, esi
mov esi, dword [ebp - 0x48]
mov al, byte [ebp - 0x39]
rep movsb byte es:[edi], byte [esi]
add al, byte [ebp - 0x38]
mov cl, dl
add cl, byte [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x50]
mov byte [ebp - 0x3a], cl
mov byte [ebp - 0x39], al
test edx, edx
je 0x10045091
cmp al, 5
jae 0x100452f2
mov edi, dword [ebx]
movzx esi, al
mov eax, 5
sub eax, esi
push eax
lea ecx, [edi + esi]
push ecx
call fcn.10045320
add esp, 8
test eax, eax
jne 0x100452f2
cmp byte [ebp - 0x39], 2
jae 0x100452b4
mov eax, 2
sub eax, esi
push eax
lea eax, [edi + esi]
push eax
call fcn.10045320
add esp, 8
test eax, eax
je 0x10045308
lea eax, [edi - 5]
push eax
call fcn.10043f20
add esp, 4
test eax, eax
je 0x10045308
mov eax, dword [ebx]
mov dl, byte [eax - 5]
test dl, dl
je 0x100452d7
cmp dl, 0x90
je 0x100452d7
cmp dl, 0xcc
jne 0x10045308
mov ecx, 1
add eax, 0xfffffffc
nop
cmp byte [eax], dl
jne 0x10045308
inc ecx
inc eax
cmp ecx, 5
jb 0x100452e0
mov dword [ebx + 0xc], 1
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004b719
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004b719
mov esp, ebp
pop ebp
ret