Function at 0x402710
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41b1e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [esp + 0x58]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x68], eax
push 0x190
mov dword [esp + 0x64], 0
call fcn.00404420
mov ecx, dword [esp + 0x6c]
add esp, 4
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x68]
push 1
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [str.88:88:88]
mov eax, dword [0x41f204]
mov cl, byte [0x41f208]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x24]
mov dword [esp + 0x30], eax
mov byte [esp + 0x34], cl
mov ecx, dword [esp + 0x68]
push edx
lea eax, [esp + 0x30]
push 8
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x48]
mov ecx, dword [ebp + 0x30]
sub eax, ebx
mov esi, 8
sub eax, edi
sub eax, 0x3d
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x2c]
cmp eax, ecx
mov dword [esp + 0x14], eax
jge 0x402916
mov ebx, dword [sym.imp.USER32.dll_DrawTextA]
lea edx, [eax + eax*2 + 0xf]
lea edi, [ebp + edx*4]
xor eax, eax
mov al, byte [edi - 8]
dec eax
je 0x4027fe
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x68]
push 0xffffff
mov dword [esp + 0x14], eax
push ecx
jmp 0x40280f
mov edx, dword [ebp + 0x24]
mov eax, dword [esp + 0x68]
push 0xffff
mov dword [esp + 0x14], edx
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], esi
lea ecx, [eax + 0x28]
lea eax, [edx + eax + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [edi]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x38]
mov edx, dword [eax - 8]
push 0x410
push ecx
push edx
push eax
mov eax, dword [esp + 0x78]
push eax
call ebx
mov ecx, dword [esp + 0x54]
lea eax, [ecx - 8]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jle 0x402861
mov ecx, eax
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
add eax, edx
cmp ecx, eax
jl 0x402916
mov eax, dword [edi]
lea ecx, [esp + 0x38]
push 0x10
push ecx
mov edx, dword [eax - 8]
push edx
push eax
mov eax, dword [esp + 0x78]
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
push 3
mov edx, dword [esp + 0x40]
push 0
push 0
push 0x10
push 0x10
push ecx
mov ecx, dword [esp + 0x40]
sub eax, ecx
sub eax, edx
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + esi - 2]
mov eax, dword [esp + 0x80]
push edx
push 8
push eax
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ecx, dword [edi - 4]
mov dword [esp + 0x38], 0x1e
push ecx
call fcn.004043d0
add esp, 4
lea edx, [esp + 0x38]
push 0x24
push edx
push 8
push eax
mov eax, dword [esp + 0x78]
push eax
call ebx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
sub ecx, edx
mov edx, dword [esp + 0x54]
add edx, 0xfffffff8
lea esi, [esi + ecx + 8]
cmp esi, edx
jg 0x402916
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x30]
inc eax
add edi, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4027e3
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, ebp
call fcn.004037c0
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.GDI32.dll_SetBkColor]
mov ebp, dword [esp + 0x1c]
lea esi, [edx - 0xd]
push 0xc896
mov dword [esp + 0x4c], esi
push ecx
mov dword [esp + 0x28], eax
dec esi
call edi
mov ebx, dword [sym.imp.GDI32.dll_ExtTextOutA]
push 0
push 0
lea ecx, [esp + 0x40]
lea edx, [esi + 0xc]
push 0
push ecx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x78]
push 2
push 0
lea eax, [ebp + 1]
push 0
push edx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x64], eax
call ebx
mov eax, dword [esp + 0x68]
push 0xc896
push eax
call edi
mov edx, dword [esp + 0x20]
push 0
push 0
lea ecx, [esi + 1]
lea eax, [edx + ebp]
push 0
mov dword [esp + 0x2c], eax
dec eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x78]
push 2
push 0
push 0
push ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ebp
call ebx
mov edx, dword [esp + 0x68]
push 0xc896
push edx
call edi
lea eax, [esi + 0xd]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x38], eax
dec eax
mov dword [esp + 0x40], eax
push 0
push 0
lea eax, [esp + 0x40]
push 0
push eax
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x30]
push 2
push 0
push 0
mov dword [esp + 0x60], ebp
push ecx
call ebx
push 0xc896
push 0xffffffffffffffff
push 0xd
push ebp
push esi
lea ecx, [esp + 0x7c]
call fcn.00403a80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cdq
sub eax, edx
push 0xc896
mov ebp, eax
mov eax, dword [esp + 0x4c]
sar ebp, 1
add ebp, ecx
mov ecx, dword [esp + 0x6c]
push ecx
lea esi, [eax + 3]
lea edx, [ebp - 3]
mov dword [esp + 0x18], edx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
inc eax
mov dword [esp + 0x44], eax
push 0
push 0
lea eax, [esp + 0x40]
push 0
push eax
push 2
push 0
lea edx, [esi + 4]
push 0
push ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], edx
call ebx
mov edx, dword [esp + 0x68]
push 0xc896
push edx
call edi
mov eax, dword [esp + 0x10]
push 0
mov dword [esp + 0x40], eax
push 0
lea edx, [esp + 0x40]
inc eax
push 0
push edx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x78]
push 2
push 0
lea ecx, [esi + 1]
push 0
push eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], ecx
call ebx
mov ecx, dword [esp + 0x10]
push 0xc896
push 2
push 0xffffffffffffffff
lea edx, [esi + 5]
push ecx
push edx
lea ecx, [esp + 0x7c]
call fcn.00403a80
mov eax, dword [esp + 0x10]
push 0xc896
push 0xffffffffffffffff
add eax, 2
push 5
push eax
push esi
lea ecx, [esp + 0x7c]
call fcn.00403a80
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x68]
push 0xc896
push edx
add ebp, 3
lea esi, [ecx + 3]
call edi
mov edx, dword [esp + 0x68]
push 0
push 0
lea ecx, [esp + 0x40]
push 0
lea eax, [esi + 4]
push ecx
push 2
mov dword [esp + 0x54], eax
push 0
lea eax, [ebp + 1]
push 0
push edx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x64], eax
call ebx
mov eax, dword [esp + 0x68]
push 0xc896
push eax
call edi
push 0
push 0
lea edx, [esp + 0x40]
lea eax, [ebp + 1]
push 0
push edx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x78]
push 2
push 0
lea ecx, [esi + 1]
push 0
push eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ecx
call ebx
push 0xc896
push 2
push 0xffffffffffffffff
lea ecx, [esi + 5]
push ebp
push ecx
lea ecx, [esp + 0x7c]
call fcn.00403a80
push 0xc896
push 0xffffffffffffffff
add ebp, 2
push 5
push ebp
push esi
lea ecx, [esp + 0x7c]
call fcn.00403a80
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 4