Function at 0x408c3c
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov edi, dword [esp + 0x5c]
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx + 4], al
mov dword [ecx], 0xe8
lea ecx, [esp + 0xc]
mov byte [ecx + 4], al
mov dword [ecx], 0xe9
lea ecx, [esp + 0x18]
mov word [ecx + 4], 0
mov dword [ecx], 0x800f
mov dword [edi + 0xc], eax
mov dword [esp], 0
mov dword [edi + 0x10], eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x14], eax
movzx esi, al
add esi, dword [edi]
mov dword [esp + 0x44], ebx
movzx ebp, bl
mov edi, dword [edi + 8]
add edi, ebp
lea eax, [esp + 0x28]
push eax
push esi
call fcn.00407954
add esp, 8
test byte [esp + 0x41], 0x10
jne 0x408f64
cmp byte [esp + 0x14], 5
jb 0x408cd5
mov eax, esi
sub eax, edi
add eax, 0xfffffffb
mov dword [esp + 0xd], eax
mov eax, 5
mov cl, 1
mov dword [esp + 8], ecx
lea ecx, [esp + 0xc]
jmp 0x408d10
movzx ecx, byte [esp + 0x2e]
cmp ecx, 0xe8
jne 0x408d87
movzx eax, byte [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov edx, esi
sub edx, edi
add edx, eax
lea eax, [ecx + edx]
add eax, 0xfffffffb
mov dword [esp + 0x21], eax
mov eax, 5
mov dword [esp + 8], 0
lea ecx, [esp + 0x20]
mov dword [esp + 4], ecx
cmp esi, dword [esp]
jae 0x408d26
movzx edx, byte [esp + 0x28]
cmp eax, edx
jne 0x408f64
lea ebx, [eax + ebp]
cmp ebx, 0x20
ja 0x408f64
mov edx, dword [esp + 0x5c]
mov edx, dword [edx + 0x10]
cmp edx, 8
jae 0x408f64
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x14]
mov byte [edi + edx + 0x14], cl
mov esi, ebp
mov ebp, ecx
mov edx, dword [edi + 0x10]
mov ecx, dword [esp + 0x44]
mov byte [edi + edx + 0x1c], cl
inc dword [edi + 0x10]
add esi, dword [edi + 8]
push eax
push dword [esp + 8]
push esi
call sub.msvcrt.dll_memcpy
mov eax, ebp
add esp, 0xc
add al, byte [esp + 0x28]
cmp byte [esp + 8], 0
je 0x408c84
jmp 0x408ea5
mov edx, ecx
and edx, 0xfffffffd
cmp edx, 0xe9
jne 0x408da6
movzx edx, byte [esp + 0x28]
add edx, esi
cmp cl, 0xeb
je 0x408de4
mov ecx, dword [esp + 0x38]
jmp 0x408de9
mov edx, ecx
and edx, 0xfffffff0
cmp edx, 0x70
sete dl
mov ebx, ecx
and ebx, 0xfffffffc
cmp ebx, 0xe0
sete bl
or bl, dl
jne 0x408dd3
mov dl, byte [esp + 0x2f]
and dl, 0xf0
cmp dl, 0x80
jne 0x408e84
movzx edx, byte [esp + 0x28]
add edx, esi
test bl, bl
jne 0x408e19
mov ebx, dword [esp + 0x38]
jmp 0x408e1e
movsx ecx, byte [esp + 0x38]
add edx, ecx
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx]
cmp edx, ecx
jb 0x408dfc
add ecx, 5
cmp edx, ecx
jb 0x408e31
sub edx, edi
add edx, 0xfffffffb
mov dword [esp + 0xd], edx
cmp esi, dword [esp]
setae al
mov dword [esp + 8], eax
mov eax, 5
jmp 0x408ccf
movsx ebx, byte [esp + 0x38]
add edx, ebx
mov ebx, dword [esp + 0x5c]
mov ebx, dword [ebx]
cmp edx, ebx
jb 0x408e46
add ebx, 5
cmp edx, ebx
jae 0x408e46
mov ecx, dword [esp]
cmp ecx, edx
cmovbe ecx, edx
mov dword [esp], ecx
mov dword [esp + 8], 0
jmp 0x408e9c
mov eax, ecx
and al, 0xfc
cmp al, 0xe0
je 0x408f64
cmp cl, 0xf
movzx eax, byte [esp + 0x2f]
cmovne eax, ecx
and al, 0xf
or al, 0x80
mov byte [esp + 0x19], al
sub edx, edi
add edx, 0xfffffffa
mov dword [esp + 0x1a], edx
mov eax, 6
mov dword [esp + 8], 0
lea ecx, [esp + 0x18]
jmp 0x408d10
and ecx, 0xfffffffe
cmp ecx, 0xc2
sete cl
cmp esi, dword [esp]
setae dl
and dl, cl
mov dword [esp + 8], edx
mov dword [esp + 4], esi
jmp 0x408d14
xor esi, esi
inc esi
cmp al, 4
ja 0x408f66
mov ebx, eax
movzx ecx, al
mov eax, dword [edi]
movzx edx, byte [eax + ecx]
test edx, edx
je 0x408ecf
cmp edx, 0xcc
je 0x408ecf
cmp edx, 0x90
jne 0x408eef
mov edi, 5
sub edi, ecx
cmp edi, 2
jb 0x408f66
mov edi, ecx
cmp byte [eax + edi + 1], dl
jne 0x408eef
inc edi
cmp edi, 4
jne 0x408ee1
jmp 0x408f66
cmp bl, 1
ja 0x408f20
test edx, edx
je 0x408f08
cmp edx, 0xcc
je 0x408f08
cmp edx, 0x90
jne 0x408f64
mov edi, 2
sub edi, ecx
cmp edi, 2
jb 0x408f20
cmp byte [eax + ecx + 1], dl
jne 0x408f64
inc ecx
cmp ecx, 1
jne 0x408f14
add eax, 0xfffffffb
push eax
call fcn.00407923
add esp, 4
test eax, eax
je 0x408f64
mov edi, dword [esp + 0x5c]
mov eax, dword [edi]
movzx ecx, byte [eax - 5]
test ecx, ecx
je 0x408f4e
cmp ecx, 0xcc
je 0x408f4e
cmp ecx, 0x90
jne 0x408f64
mov edx, 0xfffffffc
cmp byte [eax + edx], cl
jne 0x408f64
inc edx
jne 0x408f53
mov dword [edi + 0xc], 1
jmp 0x408f66
xor esi, esi
mov eax, esi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret