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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d1a76
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push dword [ebp + 0xc]
lea esi, [esp + 0x20]
call fcn.004025e3
xor esi, esi
mov dword [esp + 0x78], esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call dword [eax + 0x38]
mov ecx, dword [ebx + 0xa8]
mov dword [esp + 0x10], esi
cmp ecx, esi
jbe 0x4ce0b0
mov edi, dword [ebx + 0xa4]
cmp edi, esi
jbe 0x4ce0b0
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
xor edx, edx
imul eax, ecx
div edi
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x78], esi
jne 0x4ce1ed
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x18], 0xff000000
call fcn.00404f88
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0048dcba
mov byte [esp + 0x78], 1
mov eax, dword [ebx]
lea esi, [esp + 0x3c]
lea edi, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call dword [eax + 0x2c]
mov dword [esp + 0x14], eax
and dword [esp + 0x14], 1
je 0x4ce10b
lea esi, [esp + 0x5c]
mov ecx, ebx
call fcn.004cecaf
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x5c]
push eax
push ecx
push dword [esp + 0x68]
push dword [esp + 0x68]
push dword [esp + 0x44]
push dword [esp + 0x30]
call sub.gdiplus.dll_GdipFillRectangleI
test eax, eax
je 0x4ce13a
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x1c], 0xff000000
call fcn.00404f88
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0048dcba
mov byte [esp + 0x78], 2
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
lea esi, [esp + 0x3c]
lea edi, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub eax, ecx
movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x10], eax
jae 0x4ce183
mov eax, dword [esp + 0x10]
add ecx, eax
cmp dword [esp + 0x14], 0
mov dword [esp + 0x54], ecx
je 0x4ce19f
lea esi, [esp + 0x4c]
mov ecx, ebx
call fcn.004cecaf
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
sub ecx, dword [esp + 0x4c]
push eax
push ecx
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x38]
push dword [esp + 0x30]
call sub.gdiplus.dll_GdipFillRectangleI
test eax, eax
je 0x4ce1ca
mov dword [esp + 0x20], eax
mov byte [esp + 0x78], 1
lea eax, [esp + 0x24]
push eax
call fcn.0048dbdb
mov byte [esp + 0x78], 0
lea eax, [esp + 0x30]
push eax
call fcn.0048dbdb
jmp 0x4ce29f
lea eax, [esp + 0x1c]
push eax
push ebx
lea edi, [esp + 0x44]
call fcn.004cdf56
cmp byte [ebx + 0xac], 0
je 0x4ce28c
cmp byte [ebx + 0x60], 0
je 0x4ce28c
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov edx, dword [ebx + 0x5c]
mov esi, dword [ebx + 0x58]
sub eax, ecx
imul eax, edx
cdq
idiv esi
mov esi, edi
lea edi, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x84]
mov dword [esp + 0x18], 5
add ecx, eax
and dword [esp + 0x14], 0
mov dword [esp + 0x5c], ecx
jmp 0x4ce24d
mov ebx, dword [ebp + 8]
mov esi, dword [edi]
call fcn.0040256a
mov dword [esp + 0x10], eax
call fcn.0040258a
mov ecx, dword [esp + 0x14]
push eax
push dword [esp + 0x64]
mov eax, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x1c]
push ebx
add ecx, eax
mov edx, esi
lea ebx, [esp + 0x2c]
call fcn.004cdd10
add dword [esp + 0x14], esi
add edi, 4
dec dword [esp + 0x18]
jne 0x4ce24a
jmp 0x4ce29f
push dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ebx
lea eax, [esp + 0x48]
call fcn.004cddc9
or dword [esp + 0x78], 0xffffffff
push dword [esp + 0x1c]
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8