Function at 0x40ace0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a4792
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
xor edi, edi
mov eax, vtable.CPen.0
mov esi, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
mov eax, dword [0x628100]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], vtable.CBrush.0
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], vtable.CBitmap.0
mov bl, 4
push 8
mov byte [esp + 0x58], bl
call fcn.0058f420
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov byte [esp + 0x54], 5
je 0x40ad5f
mov ecx, eax
call fcn.0058d543
mov edi, eax
lea ecx, [esi + 0xc]
push ebp
push 2
mov byte [esp + 0x5c], bl
mov edx, dword [ecx]
mov dword [esp + 0x44], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x48], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [ecx + 0xc]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x50], eax
call fcn.00596aae
mov ecx, dword [esi + 0x20]
push 0xffffff
mov edx, dword [ecx]
call dword [edx + 0x2c]
push 0xffffff
call dword [fcn.005b716c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00597270
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x18]
push eax
call fcn.00596a39
mov ebp, dword [fcn.005b7708]
push 0xf
mov dword [esp + 0x14], eax
call ebp
push eax
push 1
push 0
call dword [0x5b7170]
push eax
lea ecx, [esp + 0x2c]
call fcn.00597270
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x20]
call fcn.00596a39
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov ebx, eax
mov eax, dword [esi + 0x20]
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [0x5b7174]
mov ecx, dword [esi + 0x20]
push ebx
call fcn.00596a39
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push eax
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esi + 0x20]
push edx
call fcn.00596db5
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
dec ecx
push eax
push ecx
mov ecx, dword [esi + 0x20]
call fcn.00596e01
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esi + 0x20]
call fcn.00596db5
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x20]
dec edx
push edx
push eax
call fcn.00596e01
push 0xfffffffffffffffc
lea ecx, [esp + 0x44]
push 0xfffffffffffffffc
push ecx
call dword [0x5b770c]
lea ecx, [esp + 0x30]
call fcn.005972c7
call fcn.0059f9bd
mov eax, dword [eax + 0xc]
push 0xf5
push eax
call dword [0x5b7710]
push eax
lea ecx, [esp + 0x34]
call fcn.00597270
push 8
push 2
push 0x19
push 0x18
push 0x18
mov ecx, edi
call fcn.0058d608
mov edx, dword [esp + 0x34]
mov eax, dword [edi + 4]
push 0xff00ff
push edx
push eax
call dword [fcn.005b708c]
mov eax, dword [esi + 0x28]
mov ecx, dword [edi + 4]
push 0
push eax
push ecx
call dword [0x5b7074]
mov ecx, edi
mov ebx, eax
call fcn.0058d5bf
mov ecx, edi
call fcn.0058d595
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
test ebx, ebx
je 0x40af37
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov ecx, 0x18
sub eax, edi
cmp eax, ecx
mov edx, ecx
jge 0x40af0a
mov edx, eax
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
sub eax, edi
cmp eax, 0x18
jge 0x40af1b
mov ecx, eax
mov eax, dword [esp + 0x44]
push 3
push 0
push 0
push edx
push ecx
mov ecx, dword [esi + 0x20]
push ebx
push eax
push edi
mov edx, dword [ecx + 4]
push edx
call dword [0x5b7714]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
add ecx, 0x20
add eax, 2
push 0x11
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
call dword [0x5b7178]
mov ecx, dword [esi + 0x20]
test eax, eax
je 0x40af67
push eax
mov eax, dword [ecx + 4]
push eax
call dword [fcn.005b71bc]
push 0x10
call ebp
push eax
push 1
push 0
call dword [0x5b7170]
push eax
lea ecx, [esp + 0x24]
call fcn.00597270
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x20]
call fcn.00596a39
mov ecx, dword [esi + 0x20]
push 0
mov edi, eax
mov edx, dword [ecx]
call dword [edx + 0x30]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0x40]
push 0x850
mov ebp, dword [ecx]
push edx
mov edx, dword [eax - 8]
push edx
push eax
call dword [ebp + 0x68]
test edi, edi
pop ebp
je 0x40afc1
mov ecx, dword [esi + 0x20]
push edi
call fcn.00596a39
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40afd2
mov ecx, dword [esi + 0x20]
push eax
call fcn.00596a39
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40afe3
lea ecx, [esp + 0x14]
call fcn.005972c7
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40aff4
lea ecx, [esp + 0x24]
call fcn.005972c7
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40b005
lea ecx, [esp + 0x1c]
call fcn.005972c7
test ebx, ebx
je 0x40b010
push ebx
call dword [0x5b7718]
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 6
call fcn.005972c7
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 7
call fcn.005972c7
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 1
call fcn.0058f6df
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 8
call fcn.005972c7
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x54], 9
call fcn.005972c7
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret