Function at 0x412b60
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x6ae4]
test eax, eax
push esi
push edi
mov bl, 1
je 0x412e25
lea ecx, [ebp + eax*8]
lea edi, [eax + ecx + 0x16c]
dec eax
sub edi, 9
mov dword [esp + 0x18], eax
movzx eax, byte [edi + 4]
dec eax
je 0x412d36
dec eax
je 0x412c2d
sub eax, 2
jne 0x412e19
mov edx, dword [edi]
mov ecx, dword [ebp + edx*4 + 0xd4ac]
test ecx, ecx
je 0x412e19
cmp byte [ecx + 0x2e], 3
je 0x412e19
lea eax, [esp + 0x1c]
push eax
call fcn.004939b0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x412e19
cmp byte [esp + 0x50], 4
jne 0x412e19
cmp bl, byte [esp + 0x4c]
jae 0x412e25
mov esi, dword [esp + 0x48]
movzx ecx, word [esi]
mov eax, dword [edi]
cmp ecx, eax
je 0x412e19
push 4
push eax
mov ecx, ebp
call fcn.00412240
test eax, eax
je 0x412e19
mov ax, word [edi]
movzx edx, bl
mov word [esi + edx*2], ax
jmp 0x412e17
mov ecx, dword [edi]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [ebp + 0xd4a0]
call fcn.00401860
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 0xd4a4]
je 0x412e19
mov esi, dword [eax + 0x10]
test esi, esi
je 0x412e19
cmp byte [esi + 0x2e], 3
je 0x412e19
cmp byte [esi + 0x34], 3
je 0x412e19
mov ecx, ebp
call fcn.00401910
mov ecx, eax
mov eax, 0x3e8
cmp word [ecx + 0x1a8], ax
je 0x412c9b
cmp word [esi + 0x1a8], ax
je 0x412e19
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004939b0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x412e19
cmp byte [esp + 0x50], 2
jne 0x412e19
cmp bl, byte [esp + 0x4c]
jae 0x412e25
mov ecx, dword [esp + 0x48]
movzx edx, word [ecx]
mov eax, dword [edi]
cmp edx, eax
je 0x412e19
cmp eax, dword [ebp + 0x94]
je 0x412e19
mov cx, word [esp + 0x54]
cmp cx, 0xffff
je 0x412d11
movzx ecx, cx
mov edx, dword [ecx*4 + 0x65945c]
movzx ecx, byte [edx + 0x44]
test ecx, ecx
je 0x412d23
push 2
push eax
mov ecx, ebp
call fcn.00412240
test eax, eax
je 0x412e19
mov cx, word [edi]
mov edx, dword [esp + 0x48]
movzx eax, bl
mov word [edx + eax*2], cx
jmp 0x412e17
mov eax, dword [edi]
mov ecx, dword [ebp + eax*4 + 0xd63c]
test ecx, ecx
je 0x412e19
cmp byte [ecx + 0x2e], 3
je 0x412e19
cmp byte [ecx + 0x34], 3
je 0x412e19
call fcn.00482380
test al, al
je 0x412e19
mov ecx, 0x4c81f0
call fcn.0041ab70
test eax, eax
je 0x412db8
mov ecx, ebp
call fcn.00401910
mov si, word [eax + 0x1a8]
mov ecx, 0x4c81f0
call fcn.0041ab60
cmp ax, si
jne 0x412db8
mov ecx, dword [edi]
mov edx, dword [ebp + ecx*4 + 0xd63c]
mov ax, word [edx + 0x2f]
cmp ax, 0xca
je 0x412e19
cmp ax, 0xcb
je 0x412e19
cmp ax, 0xcc
je 0x412e19
cmp ax, 0xcd
je 0x412e19
mov ecx, dword [edi]
mov ecx, dword [ebp + ecx*4 + 0xd63c]
lea eax, [esp + 0x2c]
push eax
call fcn.00482170
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x412e19
cmp byte [esp + 0x50], 1
jne 0x412e19
cmp bl, byte [esp + 0x4c]
jae 0x412e25
mov edx, dword [esp + 0x48]
movzx ecx, word [edx]
mov eax, dword [edi]
cmp ecx, eax
je 0x412e19
push 1
push eax
mov ecx, ebp
call fcn.00412240
test eax, eax
je 0x412e19
mov ax, word [edi]
mov ecx, dword [esp + 0x48]
movzx edx, bl
mov word [ecx + edx*2], ax
inc bl
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x412b84
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x24
ret 0x20