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

Disassembly:
push 0xffffffffffffffff
push 0x44c21b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x461978]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb4]
mov eax, dword [ebp + 0x28]
xor edi, edi
cmp eax, edi
je 0x40d52f
mov ecx, dword [esp + 0xb0]
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], edi
call sub.gdiplus.dll_GdipCreateFromHDC
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0xa8], edi
mov eax, dword [ebp + 0x6c]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x8c], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x24], edi
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], edx
mov byte [esp + 0xa8], 1
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x40d1a0
mov eax, dword [ebp + 0x50]
cmp eax, edi
je 0x40d4fa
jmp 0x40d1b4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x28], edi
mov ecx, dword [eax]
mov esi, dword [eax + 8]
mov dword [esp + 0x34], ecx
jne 0x40d1c8
cmp dword [esi + 0x34], edi
jmp 0x40d1cc
cmp dword [esi + 0x34], 1
je 0x40d4f0
lea edx, [esp + 0x2c]
push edx
push 0x32ff0000
mov dword [esp + 0x70], vtable.Gdiplus::SolidBrush.0
mov dword [esp + 0x34], edi
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x6c], eax
mov byte [esp + 0xa8], 2
fild dword [esi + 0x20]
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x2c]
fstp dword [esp + 0x74]
fild dword [esi + 0x24]
sub edx, dword [esi + 0x24]
cmp dword [esi + 0x34], edi
mov dword [esp + 0x14], ecx
fstp dword [esp + 0x78]
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fstp dword [esp + 0x7c]
fild dword [esp + 0x14]
fstp dword [esp + 0x80]
jne 0x40d29d
cmp dword [esi + 0x470], edi
je 0x40d29d
mov eax, dword [ebp + 0x70]
push edi
push eax
call sub.gdiplus.dll_GdipSetStringFormatTrimming
cmp eax, edi
je 0x40d254
mov dword [ebp + 0x74], eax
lea ebx, [ebp + 0xd8]
cmp ebx, edi
je 0x40d26d
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00410130
fild dword [esi + 0x20]
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x2c]
sub ecx, dword [esi + 0x24]
fstp dword [esp + 0x3c]
fild dword [esi + 0x24]
mov dword [esp + 0x14], eax
fstp dword [esp + 0x40]
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fstp dword [esp + 0x44]
fild dword [esp + 0x14]
jmp 0x40d2dd
mov edx, dword [ebp + 0x70]
push 3
push edx
call sub.gdiplus.dll_GdipSetStringFormatTrimming
cmp eax, edi
je 0x40d2af
mov dword [ebp + 0x74], eax
fild dword [esi + 0x10]
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x14]
fstp dword [esp + 0x3c]
fild dword [esi + 0x14]
mov dword [esp + 0x14], eax
fstp dword [esp + 0x40]
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fstp dword [esp + 0x44]
fild dword [esp + 0x14]
cmp dword [esi + 0x3c], edi
fstp dword [esp + 0x48]
jne 0x40d2ff
lea ebx, [ebp + 0xd8]
cmp ebx, edi
je 0x40d2ff
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00410130
mov eax, dword [esi + 0x38]
cmp eax, 1
jne 0x40d31d
lea ebx, [ebp + 0x90]
cmp ebx, edi
je 0x40d33b
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
jmp 0x40d336
cmp eax, 2
jne 0x40d33b
lea ebx, [ebp + 0xb4]
cmp ebx, edi
je 0x40d33b
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00410130
mov ecx, dword [esi + 0x40]
cmp ecx, edi
mov dword [esp + 0x14], ecx
je 0x40d415
mov edx, dword [ebp + 0x130]
mov eax, dword [ebp + 0x120]
mov ebx, dword [esi + 0x4c]
mov ecx, dword [ecx + 4]
sub eax, edx
mov dword [esp + 0x18], edx
cdq
sub eax, edx
mov edx, dword [ebp + 0x134]
mov edi, eax
mov eax, dword [ebp + 0x138]
add ebx, eax
lea eax, [esp + 0x38]
push eax
sar edi, 1
add edi, dword [esi + 0x48]
push ecx
mov dword [esp + 0xa4], edx
mov dword [esp + 0x40], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x40d39f
mov edx, dword [esp + 0x14]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x40]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x40d3cf
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40d3db
mov eax, dword [eax + 4]
jmp 0x40d3dd
xor eax, eax
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 2
push edx
mov edx, dword [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0x30]
push 0
push 0
push edx
mov edx, dword [esp + 0x44]
push ecx
push ebx
push edi
push eax
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
test eax, eax
je 0x40d415
mov dword [esp + 0x24], eax
lea ebx, [esi + 0x58]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40d4d4
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov dword [esp + 0x18], ecx
sub edx, eax
cmp dword [esi + 0x34], 0
fstp dword [esp + 0x58]
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
fstp dword [esp + 0x5c]
fild dword [esp + 0x18]
fstp dword [esp + 0x60]
jne 0x40d46b
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jmp 0x40d478
mov edx, dword [esi + 0xc]
sub edx, ecx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
cmp dword [esi + 0x470], 0
fstp dword [esp + 0x64]
je 0x40d4d4
mov edx, dword [ebp + 0x68]
push 3
mov eax, 1
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
push ecx
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x70]
push eax
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push ebx
lea edi, [esp + 0x78]
mov dword [esp + 0x38], 0xb4323232
call fcn.00403410
mov eax, dword [esp + 0xcc]
push eax
mov eax, edi
mov ecx, esi
call fcn.0040c990
mov byte [esp + 0xa8], 1
mov ecx, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x6c], vtable.Gdiplus::Brush.0
call sub.gdiplus.dll_GdipDeleteBrush
xor edi, edi
cmp dword [esp + 0x34], edi
jne 0x40d1b0
cmp dword [esp + 0x28], edi
jne 0x40d50d
mov dword [esp + 0x28], 1
jmp 0x40d1a0
mov edx, dword [esp + 0xb0]
mov esi, dword [esp + 0x20]
push edx
push esi
call sub.gdiplus.dll_GdipReleaseDC
mov eax, dword [esp + 0x1c]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
push esi
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8