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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47486c
push eax
mov dword fs:[0], esp
sub esp, 0xf8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x118]
mov esi, ecx
lea ecx, [esp + 0xa8]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x50]
test eax, eax
je 0x406d31
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.user32.dll_GetClientRect]
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 0x164]
inc ecx
test eax, eax
mov dword [esp + 0x34], ecx
je 0x40690f
lea ebx, [esi + 0x3c]
push 1
push 1
mov ecx, ebx
call fcn.0040eba0
test eax, eax
je 0x4068f7
mov edx, dword [edi + 4]
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.0040ead0
mov edx, dword [edi + 4]
lea ecx, [esp + 0x2c]
push 0
push ecx
push 1
push 1
push edx
mov ecx, ebx
call fcn.0040ea90
jmp 0x406922
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, edi
call fcn.004707e4
mov edx, dword [esi + 0x1c]
mov ebx, dword [sym.imp.user32.dll_SendMessageA]
push 0
push 0
push 0x1200
push edx
call ebx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x154]
push eax
push 1
push 0
lea ecx, [esp + 0x48]
call fcn.0046c836
mov ecx, dword [esi + 0x158]
mov dword [esp + 0x110], 0
push ecx
push 1
push 0
lea ecx, [esp + 0x50]
call fcn.0046c836
mov edx, dword [edi + 8]
push 1
push edx
mov byte [esp + 0x118], 1
call dword [sym.imp.gdi32.dll_GetCurrentObject]
push eax
call fcn.0046c7b4
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x31
push eax
call ebx
mov ebp, dword [edi]
push eax
call fcn.0046c7b4
push eax
mov ecx, edi
call dword [ebp + 0x28]
mov edx, dword [edi]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x15c]
mov ecx, edi
push eax
call dword [edx + 0x2c]
mov eax, dword [esi + 0x160]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
jle 0x406c9f
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x1c]
push 0
push ecx
push 0x120f
push edx
call ebx
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x54]
mov ebp, eax
push ecx
push ebp
lea eax, [esp + 0xc0]
push 0x1203
push edx
mov dword [esp + 0x64], 0x37
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], 0x50
call ebx
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
push eax
push ebp
push 0x1207
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xa8]
cmp eax, ecx
jge 0x406a4f
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xb0]
cmp edx, ecx
jg 0x406c7a
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
cmp edx, ecx
jge 0x406a83
mov ecx, dword [esi + 0x164]
test ecx, ecx
jne 0x406a83
mov edx, dword [esi + 0x158]
mov eax, dword [esi + 0x154]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.0047085a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
test ch, 0x80
je 0x406b19
mov ecx, esi
mov dword [esp + 0x78], 4
call fcn.00468e87
mov edx, dword [esi + 0x1c]
mov ecx, dword [edi + 4]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x88], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x9c], edx
mov edx, dword [esi]
lea eax, [esp + 0x78]
mov dword [esp + 0xa0], ecx
push eax
mov ecx, esi
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], 1
call dword [edx + 0xb8]
jmp 0x406c7a
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x406b88
cmp dword [esi + 0x80], ebp
jne 0x406b82
mov ecx, dword [esi + 0x168]
test ecx, ecx
je 0x406b82
mov edx, dword [esi]
push 2
mov ecx, dword [esi + 0x138]
mov ebx, dword [esi + 0x13c]
push 1
push ecx
xor ecx, ecx
cmp ebp, ebx
sete cl
push ecx
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x64]
push ecx
sub esp, 0x10
mov ecx, esp
push edi
mov dword [ecx], ebx
mov ebx, dword [esp + 0x3c]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0xc0]
mov ebx, dword [sym.imp.user32.dll_SendMessageA]
jmp 0x406bf1
mov edx, dword [esi]
push 1
jmp 0x406b39
mov eax, dword [esi + 0x4c]
push 0
neg eax
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.user32.dll_InflateRect]
mov eax, dword [esi + 0x138]
xor ecx, ecx
push eax
mov eax, dword [esi + 0x13c]
cmp ebp, eax
lea eax, [esp + 0x58]
sete cl
push ecx
push eax
mov eax, dword [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
mov edx, dword [esi]
push edi
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0xbc]
mov eax, dword [esi + 0x4c]
push 0
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.user32.dll_InflateRect]
mov ecx, esi
call fcn.00406810
test eax, eax
je 0x406c7a
test byte [esi + 0x128], 1
je 0x406c7a
cmp dword [esi + 0x80], ebp
jne 0x406c7a
test byte [esi + 0x94], 2
je 0x406c7a
mov eax, dword [esi + 0x164]
test eax, eax
je 0x406c6b
mov eax, dword [esi + 0x138]
push 3
push 1
push eax
mov eax, dword [esi + 0x13c]
xor ecx, ecx
cmp ebp, eax
lea eax, [esp + 0x60]
sete cl
push ecx
push eax
mov eax, dword [esp + 0x24]
sub esp, 0x10
mov ecx, esp
mov edx, dword [esi]
push edi
mov dword [ecx], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0xc0]
jmp 0x406c7a
mov edx, dword [edi + 4]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.user32.dll_InvertRect]
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add ebp, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4069dc
mov eax, ebp
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
sub ecx, ebx
cmp eax, ecx
jge 0x406cd5
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x164]
test eax, eax
jne 0x406cd5
mov edx, dword [esi + 0x158]
mov eax, dword [esi + 0x154]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, edi
call fcn.0047085a
mov eax, dword [esp + 0x50]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x28]
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, edi
call fcn.0046bfac
lea ecx, [esp + 0x3c]
call fcn.0046c820
lea ecx, [esp + 0x44]
call fcn.0046c820
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x110], 2
call fcn.0046c820
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x110], 3
call fcn.0046c820
mov ecx, dword [esp + 0x108]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x104
ret 4