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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45ae52
mov eax, dword fs:[0]
push eax
sub esp, 0x108
push ebx
push esi
push edi
mov eax, dword [0x4767b0]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.00420255
xor esi, esi
push esi
push esi
lea edx, [esp + 0xe8]
push edx
mov ecx, eax
call fcn.004030c0
mov dword [esp + 0x120], esi
mov ecx, dword [esp + 0xe4]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], esi
call sub.gdiplus.dll_GdipCreateFromHDC
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov eax, dword [ebx + 0x20]
lea edi, [ebx + 0xe8]
push edi
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebx + 0xcc], esi
je 0x40e446
cmp dword [ebx + 0xb0], esi
je 0x40dc6c
movzx eax, byte [ebx + 0x9c]
mov dl, byte [ebx + 0xa0]
mov cl, byte [ebx + 0xa4]
or eax, 0xffffff00
movzx edx, dl
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x10]
movzx ecx, cl
shl eax, 8
or eax, ecx
push eax
push edx
call sub.gdiplus.dll_GdipGraphicsClear
cmp eax, esi
je 0x40dc6c
mov dword [esp + 0x24], eax
cmp dword [ebx + 0xac], esi
je 0x40dcec
mov esi, dword [edi + 8]
sub esi, dword [edi]
mov eax, dword [ebx + 0x104]
mov ecx, dword [ebx + 0x100]
mov edx, dword [edi + 0xc]
sub eax, dword [ebx + 0xfc]
sub ecx, dword [ebx + 0xf8]
sub edx, dword [edi + 4]
mov dword [esp + 0x1c], esi
mov esi, dword [ebx + 0x11c]
test esi, esi
je 0x40dcae
mov esi, dword [esi + 4]
mov dword [esp + 0x14], esi
jmp 0x40dcb6
mov dword [esp + 0x14], 0
xor esi, esi
push esi
push esi
push esi
push 2
push eax
mov eax, dword [ebx + 0xfc]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [ebx + 0xf8]
push eax
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x34]
push eax
push esi
push esi
push ecx
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
cmp eax, esi
je 0x40dcec
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebx + 0x5c]
cmp eax, 3
jne 0x40dd08
mov ecx, dword [ebx + 0x118]
mov edx, dword [ebx + 0x98]
jmp 0x40dd58
cmp dword [ebx + 0x74], esi
je 0x40dd4c
cmp eax, 2
jne 0x40dd4c
test cl, 1
je 0x40dd32
mov eax, dword [ebx + 0x98]
mov ecx, dword [ebx + 0x118]
mov dword [ebx + 0x5c], 3
mov dword [ebx + 0x8c], eax
jmp 0x40dd5e
mov edx, dword [ebx + 0x114]
mov eax, dword [ebx + 0x94]
mov dword [esp + 0x18], edx
mov dword [ebx + 0x8c], eax
mov ecx, edx
jmp 0x40dd62
mov ecx, dword [ebx + 0x110]
mov edx, dword [ebx + 0x90]
mov dword [ebx + 0x8c], edx
mov dword [esp + 0x18], ecx
cmp dword [ebx + 0xa8], esi
je 0x40de98
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
cmp ecx, esi
je 0x40dd7d
mov ecx, dword [ecx + 4]
jmp 0x40dd7f
xor ecx, ecx
push 2
push eax
mov eax, dword [esp + 0x18]
push 0xa
push esi
push esi
push esi
push esi
push ecx
push eax
call sub.gdiplus.dll_GdipDrawImagePointRectI
cmp eax, esi
je 0x40dd9b
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0xe4]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx + 4]
push 0xa
push esi
push 0xa
push esi
push eax
mov dword [esp + 0x68], vtable.Gdiplus::TextureBrush.0
mov dword [esp + 0x2c], esi
call sub.gdiplus.dll_GdipCreateTexture2I
fldz
push esi
sub esp, 8
fstp dword [esp + 4]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c]
fld dword [0x469170]
fstp dword [esp]
push eax
mov dword [esp + 0x60], eax
call sub.gdiplus.dll_GdipTranslateTextureTransform
cmp eax, esi
je 0x40ddf3
mov dword [esp + 0x54], eax
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 4]
sub ecx, 0x14
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x4c]
fstp dword [esp + 0x1c]
push eax
fild dword [esp + 0x18]
lea eax, [esp + 0x40]
lea esi, [esp + 0x24]
fstp dword [esp + 0x18]
fld dword [0x469170]
fstp dword [esp + 0x40]
fldz
fstp dword [esp + 0x44]
fld dword [esp + 0x20]
fstp dword [esp + 0x48]
fld dword [esp + 0x18]
fstp dword [esp + 0x4c]
call fcn.0040e8e0
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
mov edx, dword [ebx + 0xe0]
mov eax, dword [edi + 8]
sub eax, dword [edi]
push 2
push ecx
mov ecx, dword [esp + 0x20]
push 0xa
push 0
sub edx, 0xa
push edx
mov edx, dword [ecx + 4]
push 0
sub eax, 0xa
push eax
mov eax, dword [esp + 0x3c]
push edx
push eax
call sub.gdiplus.dll_GdipDrawImagePointRectI
test eax, eax
je 0x40de87
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x10]
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
xor esi, esi
jmp 0x40dff9
cmp dword [ebx + 0x64], esi
je 0x40dfcb
fld1
lea edx, [esp + 0x28]
fst dword [esp + 0x74]
push edx
fldz
mov dword [esp + 0x2c], esi
fst dword [esp + 0x7c]
fst dword [esp + 0x80]
fst dword [esp + 0x84]
fst dword [esp + 0x88]
fst dword [esp + 0x8c]
fst dword [esp + 0x94]
fst dword [esp + 0x98]
fst dword [esp + 0x9c]
fst dword [esp + 0xa0]
fst dword [esp + 0xa4]
fst dword [esp + 0xac]
fst dword [esp + 0xb0]
fst dword [esp + 0xb4]
fst dword [esp + 0xb8]
fst dword [esp + 0xbc]
fxch st(1)
fst dword [esp + 0x90]
fst dword [esp + 0xa8]
fld dword [0x46916c]
fstp dword [esp + 0xc0]
fxch st(1)
fst dword [esp + 0xc4]
fst dword [esp + 0xc8]
fst dword [esp + 0xcc]
fst dword [esp + 0xd0]
fstp dword [esp + 0xd4]
fstp dword [esp + 0xd8]
call sub.gdiplus.dll_GdipCreateImageAttributes
mov ecx, dword [esp + 0x28]
push esi
push esi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x7c]
push eax
push 1
push esi
push ecx
call sub.gdiplus.dll_GdipSetImageAttributesColorMatrix
cmp eax, esi
je 0x40df86
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xe4]
mov ecx, dword [ebx + 0xe0]
mov edi, dword [ebx + 0x110]
push eax
push ecx
push esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
push esi
lea ecx, [esp + 0x38]
lea eax, [esp + 0x4c]
lea esi, [esp + 0x30]
call fcn.00401b40
mov edx, dword [esp + 0x28]
push edx
call sub.gdiplus.dll_GdipDisposeImageAttributes
xor esi, esi
jmp 0x40dff9
mov eax, dword [ebx + 0xe4]
mov edx, dword [ebx + 0xe0]
cmp ecx, esi
je 0x40dfe0
mov ecx, dword [ecx + 4]
jmp 0x40dfe2
xor ecx, ecx
push eax
mov eax, dword [esp + 0x14]
push edx
push esi
push esi
push ecx
push eax
call sub.gdiplus.dll_GdipDrawImageRectI
cmp eax, esi
je 0x40dff9
mov dword [esp + 0x24], eax
cmp dword [ebx + 0xc8], esi
je 0x40e507
lea ecx, [esp + 0x58]
push ecx
push esi
push 0x4645b8
mov dword [esp + 0x64], esi
call sub.gdiplus.dll_GdipCreateFontFamilyFromName
mov dword [esp + 0x5c], eax
fild dword [ebx + 0x7c]
mov eax, dword [ebx + 0x78]
lea edx, [esp + 0x14]
push edx
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
push 2
push eax
mov eax, dword [esp + 0x64]
push ecx
fstp dword [esp]
push eax
mov dword [esp + 0x28], esi
call sub.gdiplus.dll_GdipCreateFont
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ecx
mov eax, dword [ebx + 0x8c]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x70], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x24], esi
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x6c], eax
mov byte [esp + 0x120], 4
mov eax, dword [ebx + 0x108]
sub eax, 0x10
push eax
call fcn.00402880
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x38], edi
mov ecx, dword [esp + 0x20]
push 3
push ecx
call sub.gdiplus.dll_GdipSetTextRenderingHint
cmp eax, esi
je 0x40e0af
mov dword [esp + 0x24], eax
mov eax, edi
lea edx, [eax + 2]
cmp dword [ebx + 0x80], esi
jne 0x40e0f0
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40e0c0
fild dword [ebx + 0x84]
fstp dword [esp + 0x10]
fild dword [ebx + 0x88]
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fstp dword [esp + 0x30]
fld dword [esp + 0x18]
jmp 0x40e16d
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40e0f0
mov ecx, dword [ebx + 0x7c]
sub eax, edx
sar eax, 1
mov edx, ecx
imul edx, eax
mov eax, dword [ebx + 0xf0]
sub eax, edx
sub eax, dword [ebx + 0xe8]
cdq
sub eax, edx
sar eax, 1
dec eax
mov dword [ebx + 0x84], eax
mov eax, dword [ebx + 0xf4]
sub eax, dword [ebx + 0xec]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
inc eax
mov dword [esp + 0x10], eax
mov dword [ebx + 0x88], eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40e144
fild dword [ebx + 0x84]
fstp dword [esp + 0x18]
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x18]
fstp dword [esp + 0x30]
fld dword [esp + 0x10]
sub eax, edx
fstp dword [esp + 0x34]
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x70]
lea eax, [esp + 0x38]
lea edx, [esp + 0x68]
lea esi, [esp + 0x28]
call fcn.00401a20
cmp dword [ebx + 0xb4], 0
je 0x40e1d6
mov esi, dword [ebx + 0x120]
test esi, esi
je 0x40e1d6
call fcn.004070b0
mov esi, dword [ebx + 0x120]
mov dword [esp + 0x10], eax
call fcn.00407080
mov ecx, dword [ebx + 0xd4]
mov edx, dword [ebx + 0xd0]
push ecx
push edx
mov edx, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [ebx + 0x120]
lea esi, [esp + 0x28]
call fcn.00407110
cmp dword [ebx + 0xbc], 0
je 0x40e220
mov esi, dword [ebx + 0x124]
test esi, esi
je 0x40e220
call fcn.004070b0
mov esi, dword [ebx + 0x124]
mov dword [esp + 0x10], eax
call fcn.00407080
mov ecx, dword [ebx + 0xdc]
mov edx, dword [ebx + 0xd8]
push ecx
push edx
mov edx, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [ebx + 0x124]
lea esi, [esp + 0x28]
call fcn.00407110
cmp dword [ebx + 0xb8], 0
je 0x40e366
lea eax, [esp + 0x30]
push eax
push 0
push 0x465728
mov dword [esp + 0x3c], 0
call sub.gdiplus.dll_GdipCreateFontFamilyFromName
mov dword [esp + 0x34], eax
fld dword [0x469168]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
push 2
xor esi, esi
push esi
push ecx
fstp dword [esp]
push edx
mov dword [esp + 0x2c], esi
call sub.gdiplus.dll_GdipCreateFont
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x10]
push ecx
push 0xffff0000
mov dword [esp + 0x44], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x18], esi
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x10]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edx
mov byte [esp + 0x120], 8
mov eax, dword [ebx + 0x10c]
sub eax, 0x10
push eax
call fcn.00402880
lea edi, [eax + 0x10]
mov eax, dword [ebx + 0x108]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e2c5
mov ecx, dword [ebx + 0x7c]
sub eax, edx
mov edx, dword [ebx + 0x84]
sar eax, 1
imul ecx, eax
lea eax, [ecx + edx + 5]
mov dword [esp + 0x28], eax
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e2f0
fild dword [esp + 0x28]
sub eax, edx
sar eax, 1
push eax
fstp dword [esp + 0x2c]
push edi
fld dword [0x469164]
lea ecx, [esp + 0x44]
lea eax, [esp + 0x30]
fstp dword [esp + 0x34]
lea edx, [esp + 0x54]
lea esi, [esp + 0x28]
call fcn.00401a20
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e344
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x18]
push edx
call sub.gdiplus.dll_GdipDeleteFont
mov eax, dword [esp + 0x30]
push eax
call sub.gdiplus.dll_GdipDeleteFontFamily
mov edi, dword [esp + 0x38]
cmp dword [ebx + 0xc0], 0
je 0x40e3ff
cmp dword [ebx + 0x128], 0
je 0x40e3ff
mov esi, dword [ebx + 0x12c]
call fcn.004070b0
mov esi, dword [ebx + 0x12c]
mov edi, eax
call fcn.00407080
mov esi, eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x108]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x30]
push edx
push ecx
push eax
mov eax, dword [esp + 0xf0]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0x30]
mov eax, dword [ebx + 0xe0]
lea edx, [ecx + edi]
cmp edx, eax
jle 0x40e3d7
sub eax, edi
mov ecx, eax
cmp dword [ebx + 0x74], 0
push 0
push ecx
mov ecx, esi
mov edx, edi
lea esi, [esp + 0x28]
je 0x40e3f0
mov eax, dword [ebx + 0x12c]
jmp 0x40e3f6
mov eax, dword [ebx + 0x128]
call fcn.00407110
mov edi, dword [esp + 0x38]
lea eax, [edi - 0x10]
mov byte [esp + 0x120], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e423
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x14]
push edx
call sub.gdiplus.dll_GdipDeleteFont
mov eax, dword [esp + 0x58]
push eax
call sub.gdiplus.dll_GdipDeleteFontFamily
jmp 0x40e507
mov eax, dword [ebx + 0xe4]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebx + 0xe0]
sub ecx, dword [edi + 4]
cmp esi, eax
mov dword [esp + 0x14], eax
jle 0x40e4ae
sub esi, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
mov dword [esp + 0x38], ecx
fmul qword [0x469130]
call fcn.00446f70
mov ebx, dword [ebx + 0x110]
test ebx, ebx
je 0x40e491
mov ebx, dword [ebx + 4]
jmp 0x40e493
xor ebx, ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
push 0
push 0
push 0
push 2
push ecx
push ecx
mov ecx, dword [esp + 0x34]
push 0
push eax
jmp 0x40e4f6
sub eax, esi
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
fmul qword [0x469130]
mov dword [esp + 0x1c], ecx
call fcn.00446f70
mov ebx, dword [ebx + 0x110]
test ebx, ebx
je 0x40e4df
mov ebx, dword [ebx + 4]
jmp 0x40e4e1
xor ebx, ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
push 2
push esi
push esi
push eax
push 0
mov eax, dword [esp + 0x30]
push ecx
push edx
push 0
push 0
push ebx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0xe4]
mov esi, dword [esp + 0x20]
push ecx
push esi
call sub.gdiplus.dll_GdipReleaseDC
push esi
call sub.gdiplus.dll_GdipDeleteGraphics
lea edx, [esp + 0xe0]
push edx
mov dword [esp + 0x124], 0xffffffff
call fcn.00402c50
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4