Function at 0x490080
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, 0x800f
push edi
mov byte [ebp - 0x54], 0xe8
mov dword [ebp - 0x53], eax
mov byte [ebp - 0x40], 0xe9
mov dword [ebp - 0x3f], eax
mov word [ebp - 0x4c], cx
mov dword [ebp - 0x4a], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x38], eax
mov edi, edi
mov edi, dword [ebx]
add edi, dword [ebp - 0x2c]
mov esi, dword [ebx + 8]
add esi, dword [ebp - 0x44]
lea edx, [ebp - 0x20]
push edx
push edi
call fcn.00490340
add esp, 8
test dword [ebp - 8], 0x1000
mov dword [ebp - 0x34], eax
jne 0x490329
cmp dword [ebp - 0x2c], 5
mov dword [ebp - 0x30], edi
jb 0x49010f
mov eax, edi
sub eax, esi
sub eax, 5
mov dword [ebp - 0x3f], eax
lea ecx, [ebp - 0x40]
mov eax, 5
mov dword [ebp - 0x38], 1
jmp 0x490235
mov cl, byte [ebp - 0x1a]
cmp cl, 0xe8
jne 0x490131
mov edx, dword [ebp - 0x10]
sub edx, esi
lea eax, [ebp - 0x54]
add edx, edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x53], edx
mov eax, 5
jmp 0x490238
mov dl, cl
and dl, 0xfd
cmp dl, 0xe9
jne 0x490190
movzx edx, byte [ebp - 0x20]
add edx, edi
cmp cl, 0xeb
jne 0x49014e
movsx ecx, byte [ebp - 0x10]
add edx, ecx
jmp 0x490151
add edx, dword [ebp - 0x10]
mov ecx, dword [ebx]
cmp ecx, edx
ja 0x49016f
add ecx, 5
cmp edx, ecx
jae 0x49016f
cmp dword [ebp - 0x24], edx
jae 0x490238
mov dword [ebp - 0x24], edx
jmp 0x490238
sub edx, esi
sub edx, 5
cmp edi, dword [ebp - 0x24]
mov dword [ebp - 0x3f], edx
sbb ecx, ecx
lea edx, [ebp - 0x40]
inc ecx
mov dword [ebp - 0x30], edx
mov eax, 5
mov dword [ebp - 0x38], ecx
jmp 0x490238
mov dl, cl
and dl, 0xf0
mov byte [ebp - 0x25], dl
cmp dl, 0x70
je 0x4901c5
mov dl, cl
and dl, 0xfc
cmp dl, 0xe0
je 0x4901c5
mov dl, byte [ebp - 0x19]
and dl, 0xf0
cmp dl, 0x80
je 0x4901c5
and cl, 0xfe
cmp cl, 0xc2
jne 0x490238
cmp edi, dword [ebp - 0x24]
sbb ecx, ecx
inc ecx
mov dword [ebp - 0x38], ecx
jmp 0x490238
movzx edx, byte [ebp - 0x20]
add edx, edi
cmp byte [ebp - 0x25], 0x70
je 0x4901de
mov al, cl
and al, 0xfc
cmp al, 0xe0
je 0x4901de
add edx, dword [ebp - 0x10]
jmp 0x4901e4
movsx eax, byte [ebp - 0x10]
add edx, eax
mov eax, dword [ebx]
cmp eax, edx
ja 0x4901fe
add eax, 5
cmp edx, eax
jae 0x4901fe
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x24], edx
jae 0x490238
mov dword [ebp - 0x24], edx
jmp 0x490238
mov al, cl
and al, 0xfc
cmp al, 0xe0
je 0x490329
movzx eax, cl
cmp cl, 0xf
jne 0x490216
movzx eax, byte [ebp - 0x19]
and eax, 0xf
shl eax, 8
or eax, 0x800f
sub edx, esi
sub edx, 6
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x4a], edx
lea ecx, [ebp - 0x4c]
mov eax, 6
mov dword [ebp - 0x30], ecx
cmp edi, dword [ebp - 0x24]
jae 0x490249
movzx edx, byte [ebp - 0x20]
cmp eax, edx
jne 0x490329
mov ecx, dword [ebp - 0x44]
lea edx, [eax + ecx]
mov dword [ebp - 0x34], edx
cmp edx, dword [ebx + 0xc]
ja 0x490329
cmp dword [ebx + 0x14], 8
jae 0x490329
mov esi, dword [ebx + 0x14]
mov edx, dword [ebp - 0x2c]
mov byte [esi + ebx + 0x18], dl
mov esi, dword [ebx + 0x14]
mov byte [esi + ebx + 0x20], cl
mov edi, dword [ebx + 8]
inc dword [ebx + 0x14]
mov esi, dword [ebp - 0x30]
add edi, ecx
mov ecx, eax
mov eax, dword [ebp - 0x34]
rep movsb byte es:[edi], byte [esi]
movzx ecx, byte [ebp - 0x20]
add edx, ecx
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x2c], edx
je 0x4900c0
mov eax, edx
cmp eax, 5
jae 0x490313
mov edi, dword [ebx]
mov edx, 5
lea esi, [edi + eax]
sub edx, eax
call fcn.00490050
test eax, eax
jne 0x490313
mov eax, dword [ebp - 0x2c]
cmp eax, 2
jae 0x4902d2
mov edx, 2
sub edx, eax
call fcn.00490050
test eax, eax
je 0x490329
add edi, 0xfffffffb
push edi
call fcn.00490010
add esp, 4
test eax, eax
je 0x490329
mov eax, dword [ebx]
mov cl, byte [eax - 5]
test cl, cl
je 0x4902f5
cmp cl, 0x90
je 0x4902f5
cmp cl, 0xcc
jne 0x490329
mov esi, 1
lea ebx, [ebx]
cmp byte [esi + eax - 5], cl
jne 0x490329
inc esi
cmp esi, 5
jb 0x490300
mov dword [ebx + 0x10], 1
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00490a21
mov esp, ebp
pop ebp
ret