Function at 0x40633c
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.00405054
add esp, 8
test byte [esp + 0x41], 0x10
jne 0x406664
cmp byte [esp + 0x14], 5
jb 0x4063d5
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 0x406410
movzx ecx, byte [esp + 0x2e]
cmp ecx, 0xe8
jne 0x406487
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 0x406426
movzx edx, byte [esp + 0x28]
cmp eax, edx
jne 0x406664
lea ebx, [eax + ebp]
cmp ebx, 0x20
ja 0x406664
mov edx, dword [esp + 0x5c]
mov edx, dword [edx + 0x10]
cmp edx, 8
jae 0x406664
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 0x406384
jmp 0x4065a5
mov edx, ecx
and edx, 0xfffffffd
cmp edx, 0xe9
jne 0x4064a6
movzx edx, byte [esp + 0x28]
add edx, esi
cmp cl, 0xeb
je 0x4064e4
mov ecx, dword [esp + 0x38]
jmp 0x4064e9
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 0x4064d3
mov dl, byte [esp + 0x2f]
and dl, 0xf0
cmp dl, 0x80
jne 0x406584
movzx edx, byte [esp + 0x28]
add edx, esi
test bl, bl
jne 0x406519
mov ebx, dword [esp + 0x38]
jmp 0x40651e
movsx ecx, byte [esp + 0x38]
add edx, ecx
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx]
cmp edx, ecx
jb 0x4064fc
add ecx, 5
cmp edx, ecx
jb 0x406531
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 0x4063cf
movsx ebx, byte [esp + 0x38]
add edx, ebx
mov ebx, dword [esp + 0x5c]
mov ebx, dword [ebx]
cmp edx, ebx
jb 0x406546
add ebx, 5
cmp edx, ebx
jae 0x406546
mov ecx, dword [esp]
cmp ecx, edx
cmovbe ecx, edx
mov dword [esp], ecx
mov dword [esp + 8], 0
jmp 0x40659c
mov eax, ecx
and al, 0xfc
cmp al, 0xe0
je 0x406664
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 0x406410
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 0x406414
xor esi, esi
inc esi
cmp al, 4
ja 0x406666
mov ebx, eax
movzx ecx, al
mov eax, dword [edi]
movzx edx, byte [eax + ecx]
test edx, edx
je 0x4065cf
cmp edx, 0xcc
je 0x4065cf
cmp edx, 0x90
jne 0x4065ef
mov edi, 5
sub edi, ecx
cmp edi, 2
jb 0x406666
mov edi, ecx
cmp byte [eax + edi + 1], dl
jne 0x4065ef
inc edi
cmp edi, 4
jne 0x4065e1
jmp 0x406666
cmp bl, 1
ja 0x406620
test edx, edx
je 0x406608
cmp edx, 0xcc
je 0x406608
cmp edx, 0x90
jne 0x406664
mov edi, 2
sub edi, ecx
cmp edi, 2
jb 0x406620
cmp byte [eax + ecx + 1], dl
jne 0x406664
inc ecx
cmp ecx, 1
jne 0x406614
add eax, 0xfffffffb
push eax
call fcn.00405023
add esp, 4
test eax, eax
je 0x406664
mov edi, dword [esp + 0x5c]
mov eax, dword [edi]
movzx ecx, byte [eax - 5]
test ecx, ecx
je 0x40664e
cmp ecx, 0xcc
je 0x40664e
cmp ecx, 0x90
jne 0x406664
mov edx, 0xfffffffc
cmp byte [eax + edx], cl
jne 0x406664
inc edx
jne 0x406653
mov dword [edi + 0xc], 1
jmp 0x406666
xor esi, esi
mov eax, esi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret