Function at 0x5138b0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5763b8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x64]
mov ecx, dword [ebp + 0x78]
xor eax, eax
cmp ecx, eax
je 0x5138ee
mov ebp, ecx
mov ecx, dword [ebp + 0x78]
cmp ecx, eax
jne 0x5138e5
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], vtable.CPen.0
mov dword [esp + 0x5c], eax
mov ecx, dword [ebp + 0xec]
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov ebx, dword [sym.imp.GDI32.dll_SetPixel]
push ecx
add eax, 1
push edx
push eax
mov eax, dword [edi + 4]
push eax
call ebx
mov ecx, dword [ebp + 0xec]
mov eax, dword [esi + 4]
mov edx, dword [esi]
push ecx
mov ecx, dword [edi + 4]
add eax, 1
push eax
push edx
push ecx
call ebx
mov ecx, dword [ebp + 0xec]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
push ecx
push edx
mov edx, dword [edi + 4]
sub eax, 2
push eax
push edx
call ebx
mov edx, dword [ebp + 0xec]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push edx
add eax, 1
push eax
mov eax, dword [edi + 4]
sub ecx, 1
push ecx
push eax
call ebx
mov ecx, dword [ebp + 0xec]
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
push ecx
mov ecx, dword [edi + 4]
sub eax, 2
push eax
push edx
push ecx
call ebx
mov edx, dword [ebp + 0xec]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push edx
mov edx, dword [edi + 4]
sub eax, 1
push eax
add ecx, 1
push ecx
push edx
call ebx
mov edx, dword [ebp + 0xec]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edx
sub eax, 1
push eax
mov eax, dword [edi + 4]
sub ecx, 2
push ecx
push eax
call ebx
mov eax, dword [esi + 0xc]
mov edx, dword [ebp + 0xec]
sub eax, 2
mov ecx, dword [esi + 8]
push edx
sub ecx, 1
push eax
push ecx
mov ecx, dword [edi + 4]
push ecx
call ebx
mov edx, dword [ebp + 0xf0]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edx
mov edx, dword [edi + 4]
add eax, 1
push eax
add ecx, 1
push ecx
push edx
call ebx
mov edx, dword [ebp + 0xf0]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push edx
add eax, 1
push eax
mov eax, dword [edi + 4]
sub ecx, 2
push ecx
push eax
call ebx
mov edx, dword [ebp + 0xf0]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push edx
sub eax, 2
add ecx, 1
push eax
push ecx
mov ecx, dword [edi + 4]
push ecx
call ebx
mov edx, dword [ebp + 0xf0]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edx
mov edx, dword [edi + 4]
sub eax, 2
push eax
sub ecx, 2
push ecx
push edx
call ebx
mov eax, dword [ebp + 0xf0]
mov ebx, dword [sym.imp.GDI32.dll_CreatePen]
push eax
push 1
push 0
call ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00537346
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.0053741e
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
add edx, 2
mov dword [esp + 0x68], eax
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00536d88
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push ecx
sub edx, 2
push edx
mov ecx, edi
call fcn.00536a70
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
sub eax, 1
push eax
add ecx, 2
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.00536d88
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
sub eax, 1
sub ecx, 2
push eax
push ecx
mov ecx, edi
call fcn.00536a70
mov edx, dword [esi + 4]
mov eax, dword [esi]
add edx, 2
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.00536d88
mov edx, dword [esi + 0xc]
mov eax, dword [esi]
sub edx, 2
push edx
push eax
mov ecx, edi
call fcn.00536a70
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
add ecx, 2
push ecx
sub edx, 1
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00536d88
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
sub ecx, 2
push ecx
sub edx, 1
push edx
mov ecx, edi
call fcn.00536a70
mov eax, dword [esp + 0x64]
push eax
mov ecx, edi
call fcn.0053741e
lea ecx, [esp + 0x10]
call fcn.00537399
mov eax, dword [ebp + 0xf4]
push eax
push 1
push 0
call ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00537346
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.0053741e
mov edx, dword [esi + 4]
mov ebx, eax
mov eax, dword [esi]
add edx, 1
push edx
add eax, 2
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, edi
call fcn.00536d88
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
add edx, 1
push edx
sub eax, 2
push eax
mov ecx, edi
call fcn.00536a70
mov ecx, dword [esi + 0xc]
mov edx, dword [esi]
sub ecx, 2
push ecx
add edx, 2
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00536d88
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
sub ecx, 2
push ecx
sub edx, 2
push edx
mov ecx, edi
call fcn.00536a70
mov eax, dword [esi + 4]
mov ecx, dword [esi]
add eax, 2
push eax
add ecx, 1
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.00536d88
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
sub eax, 2
add ecx, 1
push eax
push ecx
mov ecx, edi
call fcn.00536a70
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
add edx, 2
push edx
sub eax, 2
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.00536d88
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
sub edx, 2
push edx
sub eax, 2
push eax
mov ecx, edi
call fcn.00536a70
push ebx
mov ecx, edi
call fcn.0053741e
lea ecx, [esp + 0x10]
call fcn.00537399
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push 0xfffffffffffffffe
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0xc]
push 0xfffffffffffffffe
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov eax, ebx
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x28]
sar eax, 1
add eax, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x40], edx
mov edx, dword [ebp + 0xf8]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0xfc]
mov dword [esp + 0x4c], ebx
push eax
lea ebx, [esp + 0x34]
call fcn.00514790
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 0x104]
mov edx, dword [ebp + 0x100]
add esp, 4
push eax
lea ebx, [esp + 0x44]
call fcn.00514790
mov edx, dword [ebp + 0x108]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [sym.imp.GDI32.dll_SetPixel]
add esp, 4
push edx
mov edx, dword [edi + 4]
add eax, 2
push eax
add ecx, 2
push ecx
push edx
call ebx
mov edx, dword [ebp + 0x108]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push edx
add eax, 2
push eax
mov eax, dword [edi + 4]
sub ecx, 3
push ecx
push eax
call ebx
mov edx, dword [ebp + 0x10c]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push edx
sub eax, 3
add ecx, 2
push eax
push ecx
mov ecx, dword [edi + 4]
push ecx
call ebx
mov eax, dword [esi + 0xc]
mov ebp, dword [ebp + 0x10c]
mov esi, dword [esi + 8]
mov edx, dword [edi + 4]
push ebp
sub eax, 3
push eax
sub esi, 3
push esi
push edx
call ebx
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.00537399
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4