Function at 0x412a00
Capabilities:
Access peb ldr_data
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x461946
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x40]
xor ebp, ebp
mov eax, dword [esi + 4]
push ecx
push eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x38], eax
mov edx, dword [0x46f42c]
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xc], edx
mov ecx, 0x16
xor eax, eax
lea edi, [esp + 0x84]
mov dword [esp + 0x80], ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x80]
push eax
push 0x5c
push ecx
mov byte [esp + 0xf0], 1
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp dword [esi + 0x24], ebp
je 0x412aae
mov byte [esp + 0x95], 1
cmp dword [esi + 0x28], ebp
je 0x412abc
mov edx, dword [esi + 0x30]
mov dword [esp + 0x20], edx
jmp 0x412ac3
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x38]
push ebx
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
mov ebx, 0x3e8
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp ecx, 1
jg 0x412af0
cmp dword [eax - 4], ebx
jge 0x412b35
mov ebp, dword [eax - 8]
cmp ebp, ebx
jle 0x412af9
mov ebx, ebp
push ebx
lea ecx, [esp + 0x14]
call fcn.00408040
test eax, eax
je 0x412b33
lea edx, [ebp + ebp + 2]
lea eax, [edi + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [ebx + ebx + 2]
push eax
push ecx
push edx
call fcn.00407060
mov eax, dword [esp + 0x20]
add esp, 0x10
push edi
mov dword [eax - 8], ebp
call fcn.00408420
mov eax, dword [esp + 0x10]
xor ebp, ebp
mov ecx, dword [esi + 4]
push 0x3e8
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x10]
call fcn.00408290
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], bp
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x3c]
push 1
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x3c]
push 0x4420
push eax
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [eax - 8]
push ecx
push eax
push edx
call edi
mov eax, dword [esi + 0x40]
pop ebx
cmp eax, ebp
je 0x412be0
push 2
jmp 0x412bf1
cmp dword [esi + 0x44], ebp
je 0x412bec
push 0x8210
jmp 0x412bf1
push 0x8020
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
push edx
call edi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0xc]
mov ecx, dword [0x46f430]
pop edi
pop esi
lea edx, [eax - 0xc]
pop ebp
cmp edx, ecx
je 0x412c48
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x412c48
mov eax, dword [esp]
add eax, 0xfffffff4
push eax
call fcn.004535f0
add esp, 4
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
add esp, 0xdc
ret 4