Function at 0x406df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ae238
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
mov eax, dword [0x4f07b0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x79], 0
mov eax, dword [esi + 8]
mov ebx, dword [eax + 0x18]
je 0x406e2e
mov ecx, dword [esi + 0xa0]
mov ebx, dword [eax + ecx*4 + 0x18]
mov edx, dword [eax + 0xc]
push edx
push 1
push 0
lea ecx, [esp + 0x5c]
call fcn.00455c0f
mov dword [esp + 0x70], 0
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x10]
push ecx
push 1
push 0
lea ecx, [esp + 0x54]
call fcn.00455c0f
mov byte [esp + 0x70], 1
push ebx
push 1
push 0
lea ecx, [esp + 0x34]
call fcn.00455c0f
mov byte [esp + 0x70], 2
push ebx
lea ecx, [esp + 0x24]
call fcn.00455c58
mov byte [esp + 0x70], 3
push 1
mov ecx, edi
call fcn.00454de6
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call fcn.00455b75
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00455b75
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
add eax, 0x28
push eax
mov ecx, edi
call edx
cmp byte [esi + 0x78], 0
mov ebx, dword [sym.imp.GDI32.dll_Rectangle]
mov dword [esp + 0x1c], eax
je 0x406f6f
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x14]
push ecx
push 1
push 0
lea ecx, [esp + 0x44]
call fcn.00455c0f
mov byte [esp + 0x70], 4
mov edx, dword [esi + 8]
mov eax, dword [edx + 0x14]
push eax
lea ecx, [esp + 0x34]
call fcn.00455c58
mov byte [esp + 0x70], 5
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
call fcn.00455b75
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.00455b75
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov ebp, dword [esi + 0x60]
lea edx, [ecx + eax + 2]
mov ecx, dword [esi + 0x58]
push edx
mov edx, dword [edi + 4]
lea ebp, [ecx + ebp + 2]
push ebp
add eax, 0xfffffffe
push eax
add ecx, 0xfffffffe
push ecx
push edx
call ebx
mov byte [esp + 0x70], 4
mov dword [esp + 0x30], vtable.CBrush.0
mov byte [esp + 0x70], 4
lea ecx, [esp + 0x30]
call fcn.004013a0
mov byte [esp + 0x70], 3
mov dword [esp + 0x38], vtable.CPen.0
mov byte [esp + 0x70], 3
lea ecx, [esp + 0x38]
call fcn.004013a0
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.00455b75
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.00455b75
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x64]
mov ebp, dword [esi + 0x58]
mov ecx, dword [esi + 0x60]
add eax, edx
push eax
add ecx, ebp
push ecx
push edx
mov edx, dword [edi + 4]
push ebp
push edx
call ebx
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call fcn.00455b75
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x64]
lea eax, [ecx + edx - 2]
mov ecx, dword [esi + 0x58]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
mov ecx, edi
call fcn.004554be
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
push eax
push ecx
mov ecx, edi
call fcn.00454f8f
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x58]
push edx
lea edx, [eax + ecx - 1]
push edx
mov ecx, edi
call fcn.00454f8f
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
lea edx, [eax + ecx - 3]
mov eax, dword [esi + 0x58]
push edx
add eax, 1
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call fcn.004554be
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x58]
add edx, 1
push edx
add eax, 1
push eax
mov ecx, edi
call fcn.00454f8f
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x60]
add ecx, 1
push ecx
lea ecx, [edx + eax - 2]
push ecx
mov ecx, edi
call fcn.00454f8f
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x58]
add edx, 4
push edx
mov ecx, dword [esi + 0x60]
lea edx, [eax + ecx - 4]
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.004554be
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x64]
lea eax, [ecx + edx - 4]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x60]
push eax
lea eax, [ecx + edx - 4]
push eax
mov ecx, edi
call fcn.00454f8f
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x64]
lea eax, [ecx + edx - 4]
mov ecx, dword [esi + 0x58]
add ecx, 3
push eax
push ecx
mov ecx, edi
call fcn.00454f8f
lea edx, [esp + 0x48]
push edx
mov ecx, edi
call fcn.00455b75
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
lea edx, [eax + ecx - 1]
mov eax, dword [esi + 0x58]
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call fcn.004554be
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x64]
lea ecx, [edx + eax - 1]
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x60]
push ecx
lea ecx, [edx + eax - 1]
push ecx
mov ecx, edi
call fcn.00454f8f
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x58]
sub edx, 1
push edx
lea edx, [eax + ecx - 1]
push edx
mov ecx, edi
call fcn.00454f8f
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
lea edx, [eax + ecx - 2]
mov eax, dword [esi + 0x58]
push edx
add eax, 1
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call fcn.004554be
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x64]
lea ecx, [edx + eax - 2]
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x60]
push ecx
lea ecx, [edx + eax - 2]
push ecx
mov ecx, edi
call fcn.00454f8f
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x58]
push edx
lea edx, [eax + ecx - 2]
push edx
mov ecx, edi
call fcn.00454f8f
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
lea edx, [eax + ecx - 4]
mov eax, dword [esi + 0x58]
push edx
add eax, 3
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call fcn.004554be
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x58]
add edx, 3
push edx
add eax, 3
push eax
mov ecx, edi
call fcn.00454f8f
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x60]
add ecx, 3
push ecx
lea ecx, [edx + eax - 3]
push ecx
mov ecx, edi
call fcn.00454f8f
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x64]
mov ebp, dword [esi + 0x58]
mov ecx, dword [esi + 0x60]
add eax, edx
add ecx, ebp
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x14]
add edx, 8
push 0x25
mov dword [esp + 0x60], edx
mov edx, dword [edi]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x5c], ebp
mov ecx, dword [eax - 0xc]
lea ebx, [esp + 0x5c]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00455b75
mov edx, dword [esp + 0x18]
push edx
mov ecx, edi
call fcn.00455b75
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
push ecx
mov ecx, edi
call edx
mov eax, dword [esi + 8]
mov ebp, dword [eax + 0x44]
mov ebx, dword [esi + 0x58]
add ebp, dword [esi + 0x5c]
xor eax, eax
sub ebx, 5
cmp dword [esi + 0x38], eax
mov dword [esp + 0x14], eax
jg 0x4072a5
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x60]
lea edx, [eax + ecx - 2]
mov eax, dword [esi + 8]
mov ebx, dword [eax + 0x44]
add ebx, dword [esi + 0x5c]
xor ebp, ebp
cmp dword [esi + 0x4c], ebp
mov dword [esp + 0x1c], edx
jle 0x40725a
test ebp, ebp
jl 0x4072de
cmp ebp, dword [esi + 0x4c]
jge 0x4072de
mov ecx, dword [esi + 0x48]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + ebp*4]
mov eax, dword [eax]
push 0
push edi
push eax
mov ecx, ebx
call fcn.00407fc0
mov edx, dword [esi + 8]
add ebx, dword [edx + 0x44]
add ebp, 1
cmp ebp, dword [esi + 0x4c]
jl 0x407224
mov ebp, dword [esi + 0x90]
test ebp, ebp
mov dword [esp + 0x18], ebp
jle 0x407399
lea ecx, [esp + 0x38]
call fcn.00455146
mov byte [esp + 0x70], 8
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call fcn.004557b5
xor ebx, ebx
test ebp, ebp
jle 0x407382
mov ecx, ebp
shl ecx, 4
mov dword [esp + 0x14], ecx
jmp 0x4072e7
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x4072de
cmp eax, dword [esi + 0x38]
jge 0x4072de
mov ecx, dword [esi + 0x34]
lea eax, [ecx + eax*4]
mov eax, dword [eax]
push 1
push edi
push eax
mov ecx, ebp
mov edx, ebx
call fcn.00407fc0
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 8]
add ebp, dword [edx + 0x44]
add eax, 1
cmp eax, dword [esi + 0x38]
mov dword [esp + 0x14], eax
jl 0x4072a1
jmp 0x407206
jmp fcn.004547dc
mov ecx, dword [esp + 0x14]
test ebx, ebx
jl 0x4072de
cmp ebx, dword [esi + 0x90]
jge 0x4072de
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x8c]
mov ebp, dword [esi + 0x5c]
sub edx, ecx
mov ecx, dword [esi + 0x60]
lea eax, [eax + ebx*4]
mov eax, dword [eax]
lea edx, [edx + ecx - 6]
mov ecx, dword [eax + 0x1c]
add ebp, 6
cmp dword [esi + 0x9c], ebx
mov dword [esp + 0x1c], edx
jne 0x407329
mov eax, dword [eax + ecx*4 + 0xc]
test eax, eax
jne 0x407331
jmp 0x407334
mov eax, dword [eax + ecx*4 + 4]
test eax, eax
je 0x407334
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x3c]
push eax
push edx
call fcn.00455b22
mov eax, dword [esp + 0x3c]
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edi + 4]
push 0x10
push 0x10
push 0
push 0
push ecx
push 0x10
push 0x10
push ebp
push edx
push eax
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
sub dword [esp + 0x14], 0x10
add ebx, 1
cmp ebx, dword [esp + 0x18]
jl 0x4072e3
lea ecx, [esp + 0x38]
call fcn.00455819
mov byte [esp + 0x70], 3
lea ecx, [esp + 0x38]
call fcn.0045582f
mov byte [esp + 0x70], 2
mov dword [esp + 0x20], vtable.CBrush.0
mov byte [esp + 0x70], 2
lea ecx, [esp + 0x20]
call fcn.004013a0
mov byte [esp + 0x70], 1
mov esi, vtable.CPen.0
mov dword [esp + 0x28], esi
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x28]
call fcn.004013a0
mov byte [esp + 0x70], 0
mov dword [esp + 0x48], esi
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x48]
call fcn.004013a0
or eax, 0xffffffff
mov dword [esp + 0x70], eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x70], eax
lea ecx, [esp + 0x50]
call fcn.004013a0
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x64
ret