Function at 0x47983a
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 8], esi
xor eax, eax
mov byte [eax + 0x4b7fcc], 0
add eax, 8
cmp eax, 0x30
jne 0x47984c
mov eax, dword [0x4c0a50]
or dword [ebp - 0x14], 0xffffffff
xor ecx, ecx
cmp eax, edi
je 0x479883
mov edx, dword [0x4c0a48]
mov edx, dword [edx + ecx*4]
mov edx, dword [edx + 0x50]
cmp dword [ebp - 0x14], edx
jge 0x47987e
mov dword [ebp - 0x14], edx
inc ecx
cmp ecx, eax
jne 0x47986a
or dword [ebp - 0x24], 0xffffffff
cmp dword [0x4c620c], 0xf
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0xc], edi
jne 0x4798ac
cmp byte [0x4c6214], 0
mov byte [ebp - 1], 1
jne 0x4798b0
mov byte [ebp - 1], 0
mov eax, dword [esi + 0xc0]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 2], 0
cmp dword [eax + 0x14], edi
jbe 0x4799ad
jmp 0x4798cd
xor edi, edi
cmp dword [esi + 0x64], edi
jne 0x479985
cmp byte [ebp - 1], 0
jne 0x479985
mov eax, dword [eax + 8]
push 2
push dword [ebp - 0x24]
push 0x100c
push eax
call ebx
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x479982
mov esi, dword [ebp - 8]
imul eax, eax, 0xdc
mov ecx, dword [esi + 0x5c]
add eax, ecx
xor edi, edi
cmp dword [eax], edi
jne 0x479913
mov edi, dword [eax + 0x78]
mov ecx, edi
call fcn.00411c00
test al, al
je 0x47996d
mov al, byte [edi + 0x3c]
mov byte [ebp - 2], 1
test al, 0x40
je 0x47992d
test al, 0x20
je 0x479934
mov byte [0x4b7fcc], 1
and al, 0x47
je 0x47993f
mov byte [0x4b7fd4], 1
test al, al
je 0x47994a
mov byte [0x4b7fdc], 1
mov edi, dword [edi + 0x50]
test edi, edi
jle 0x47996d
add dword [ebp - 0x18], edi
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x20], eax
inc dword [ebp - 0x10]
mov eax, dword [esi + 0xc0]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x14]
jb 0x4798cb
mov esi, dword [ebp - 8]
cmp byte [ebp - 2], 0
je 0x479992
mov byte [0x4b7ff4], 1
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
je 0x4799a1
mov byte [0x4b7fe4], 1
cmp eax, dword [ebp - 0x20]
je 0x4799ad
mov byte [0x4b7fec], 1
mov eax, dword [0x4c60bc]
mov edi, 0x401
test eax, eax
je 0x4799e0
cmp dword [ebp - 0x10], 0
ja 0x4799cb
cmp dword [eax + 0x24], 0
ja 0x4799cb
xor al, al
jmp 0x4799cd
mov al, 1
xor ecx, ecx
test al, al
setne cl
push ecx
push 0x13
push edi
push dword [esi + 0x8c]
call ebx
xor esi, esi
xor eax, eax
cmp byte [esi + 0x4b7fcc], al
setne al
push eax
mov eax, dword [esi + 0x4b7fc8]
mov eax, dword [eax]
imul eax, eax, 0x14
push dword [eax + 0x4b7c8c]
mov eax, dword [ebp - 8]
push edi
push dword [eax + 0x8c]
call ebx
add esi, 8
cmp esi, 0x30
jne 0x4799e2
cmp byte [0x4c61cd], 0
je 0x479a21
push 6
pop edi
jmp 0x479a36
mov ecx, dword [ebp - 8]
call fcn.00477919
xor ecx, ecx
test al, al
sete cl
lea ecx, [ecx + ecx + 2]
mov edi, ecx
xor esi, esi
mov eax, dword [esi + 0x4a3d2c]
and eax, edi
neg eax
sbb eax, eax
inc eax
push eax
movzx eax, word [esi + 0x4a3d28]
push eax
mov eax, dword [ebp - 8]
push 0x404
push dword [eax + 0x8c]
call ebx
add esi, 0xc
cmp esi, 0xcc
jb 0x479a38
pop edi
pop esi
pop ebx
leave
ret