Function at 0x40f000
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x561260
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, ecx
test byte [edi + 5], 0x20
je 0x40f028
push 0x11
jmp 0x40f02a
push 7
call dword [sym.imp.USER32.dll_GetSysColor]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
lea edx, [edi + 8]
lea ebx, [edi + 0x24]
push 0x26
mov eax, dword [edx]
mov dword [esp + 0x44], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x48], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x4c], eax
mov ecx, dword [edx + 0xc]
mov edx, dword [ebx]
mov dword [esp + 0x50], ecx
mov ecx, ebx
mov ebp, dword [edx - 8]
call fcn.00531056
sub ebp, eax
mov dword [esp + 0x70], eax
dec ebp
lea eax, [esp + 0x20]
push ebp
push eax
mov ecx, ebx
call fcn.0052835c
mov ebp, eax
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0x70], 0
call fcn.005283d8
push ebp
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x70], 1
push eax
call fcn.00530dbe
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 4
call fcn.00530b8f
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 3
call fcn.00530b8f
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.GDI32.dll_GetGraphicsMode]
mov edx, dword [esi + 4]
push 2
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
mov ecx, esi
call fcn.00535c7d
mov eax, dword [esi]
push 0x5d7be4
mov ecx, esi
call dword [eax + 0x28]
mov ecx, dword [0x5d7bd8]
mov ebp, dword [esp + 0x44]
mov edx, dword [edi + 0x18]
mov ebx, dword [edi + 0x1c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x48]
sub eax, ecx
lea ecx, [ebp + 8]
add edx, eax
add ebx, ecx
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x38], edx
push ebx
lea edx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x50]
push 0x920
mov dword [esp + 0x5c], edx
mov edx, dword [esi]
push ecx
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x68]
mov eax, dword [esp + 0x70]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0
lea ecx, [esp + 0x34]
call fcn.00536665
lea edx, [esp + 0x28]
mov ecx, esi
push edx
mov byte [esp + 0x6c], 5
call fcn.00535c08
mov ecx, dword [edi + 0x2c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x70], eax
mov eax, dword [edi + 0x28]
add ecx, ebp
add eax, edx
mov edx, dword [esp + 0x74]
add ecx, ebx
add eax, edx
push ecx
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.005360d4
mov eax, dword [edi + 0x30]
mov edi, dword [edi + 0x34]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x74]
add ebp, edi
add eax, ecx
add ebx, ebp
add eax, edx
push ebx
push eax
mov ecx, esi
call fcn.00536120
mov eax, dword [esp + 0x70]
mov ecx, esi
push eax
call fcn.00535c08
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 3
mov dword [esp + 0x28], vtable.CGdiObject.0
call fcn.0053664f
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], 0xffffffff
call fcn.00530b8f
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0xc