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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cd7ef
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x51f714]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push dword [ebp + 0xc]
lea esi, [esp + 0x20]
call fcn.0040257b
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 0x4c9d3a
mov edi, dword [ebx + 0xa4]
cmp edi, esi
jbe 0x4c9d3a
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 0x4c9e77
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x18], 0xff000000
call fcn.0041fff5
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00489588
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 0x4c9d95
lea esi, [esp + 0x5c]
mov ecx, ebx
call fcn.004ca916
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 0x4c9dc4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x1c], 0xff000000
call fcn.0041fff5
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00489588
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 0x4c9e0d
mov eax, dword [esp + 0x10]
add ecx, eax
cmp dword [esp + 0x14], 0
mov dword [esp + 0x54], ecx
je 0x4c9e29
lea esi, [esp + 0x4c]
mov ecx, ebx
call fcn.004ca916
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 0x4c9e54
mov dword [esp + 0x20], eax
mov byte [esp + 0x78], 1
lea eax, [esp + 0x24]
push eax
call fcn.004894a9
mov byte [esp + 0x78], 0
lea eax, [esp + 0x30]
push eax
call fcn.004894a9
jmp 0x4c9f29
lea eax, [esp + 0x1c]
push eax
push ebx
lea edi, [esp + 0x44]
call fcn.004c9be0
cmp byte [ebx + 0xac], 0
je 0x4c9f16
cmp byte [ebx + 0x60], 0
je 0x4c9f16
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 0x4c9ed7
mov ebx, dword [ebp + 8]
mov esi, dword [edi]
call fcn.00402502
mov dword [esp + 0x10], eax
call fcn.00402522
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.004c999a
add dword [esp + 0x14], esi
add edi, 4
dec dword [esp + 0x18]
jne 0x4c9ed4
jmp 0x4c9f29
push dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ebx
lea eax, [esp + 0x48]
call fcn.004c9a53
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