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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49e4b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
mov eax, dword [0x4d757c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x17c], eax
lea eax, [esp + 0x18]
push eax
mov ebx, ecx
xor esi, esi
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
call sub.gdiplus.dll_GdipCreateFromHDC
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x18c], esi
mov dword [esp + 0x1c], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x60]
test eax, eax
mov dword [esp + 0x30], edi
je 0x4745c7
mov eax, dword [eax]
test eax, eax
je 0x4745c7
cmp edi, eax
je 0x4745c7
mov cl, byte [ebx + 0x108]
test cl, cl
jne 0x4745b9
mov edx, dword [ebx + 0x10c]
mov ecx, dword [ebx + 4]
push edx
push 0x14
call fcn.0046c8f0
test eax, eax
je 0x4745c7
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4745c7
mov eax, dword [esi + 0x60]
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
jmp 0x4745bc
mov dword [ebp + 8], eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], 1
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x68]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x68]
push ecx
push edi
mov ecx, ebx
call fcn.00474160
mov edx, dword [esi + 0x20]
xor ebx, ebx
push ebx
push ebx
push 0x1304
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x474764
mov edi, edi
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov word [esp + 0x78], ax
mov dword [esp + 0x4c], eax
mov ecx, 0x3f
lea edi, [esp + 0x7a]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x34]
push edx
push ebx
stosw word es:[edi], ax
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x133c
lea ecx, [esp + 0x84]
push eax
mov dword [esp + 0x44], 1
mov dword [esp + 0x54], 0x80
mov dword [esp + 0x50], ecx
call edi
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x50]
push edx
push ebx
push 0x130a
push eax
mov byte [esp + 0x19c], 1
call edi
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
push 0x10
mov dword [esp + 0x28], ecx
push ebx
mov ecx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edi
call sub.MFC71U.DLL_CTreeCtrl::GetItemRect
mov ecx, esi
call sub.MFC71U.DLL_COleControlSite::IsWindowEnabled
test eax, eax
jne 0x4746cc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 0xa4]
jmp 0x474724
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x130b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, eax
jne 0x4746f1
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 0x74]
jmp 0x474724
push 0x10
push ebx
mov ecx, esi
call sub.MFC71U.DLL_CTreeCtrl::GetItemRect
cmp eax, 2
jne 0x474718
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 0x44]
push edx
push eax
jmp 0x47472e
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 0x14]
lea edx, [esp + 0x24]
push edx
mov edx, dword [ebp + 8]
push eax
push edx
call fcn.00474050
lea ecx, [esp + 0x10]
mov byte [esp + 0x18c], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x1304
push eax
inc ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, eax
jl 0x474600
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47478d
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x64]
mov eax, dword [esp + 0x30]
push 0xcc0020
push 0
push 0
push edi
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x18]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x17c]
call fcn.0045a4fd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8