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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e6c5c
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push dword [ebp + 0xc]
lea esi, [esp + 0x20]
call fcn.0040334c
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 eax, dword [ebx + 0xb4]
cmp eax, esi
mov ecx, dword [ebx + 0xb0]
mov dword [esp + 0x10], esi
jl 0x4e2e3d
jg 0x4e2df5
cmp ecx, esi
jbe 0x4e2e3d
cmp dword [ebx + 0xac], esi
mov edi, dword [ebx + 0xa8]
jl 0x4e2e3d
jg 0x4e2e09
cmp edi, esi
jbe 0x4e2e3d
push esi
push 0x64
push eax
push ecx
call fcn.004cece0
push dword [ebx + 0xac]
push edi
push edx
push eax
call fcn.004d33e0
mov ecx, eax
cmp ecx, esi
jbe 0x4e2e3d
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
push 0x64
imul eax, ecx
xor edx, edx
pop ecx
div ecx
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x7c], esi
jne 0x4e2f6a
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x18], 0xff000000
call fcn.00405821
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00498e60
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 0x4e2e98
lea esi, [esp + 0x5c]
mov ecx, ebx
call fcn.004e3a67
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
lea esi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
push eax
push dword [esp + 0x68]
lea eax, [esp + 0x3c]
push dword [esp + 0x68]
call fcn.00498d59
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x1c], 0xff000000
call fcn.00405821
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00498e60
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 0x4e2f08
mov eax, dword [esp + 0x10]
add eax, ecx
cmp dword [esp + 0x14], 0
mov dword [esp + 0x54], eax
je 0x4e2f24
lea esi, [esp + 0x4c]
mov ecx, ebx
call fcn.004e3a67
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x50]
sub eax, dword [esp + 0x4c]
push ecx
push eax
push dword [esp + 0x58]
lea eax, [esp + 0x30]
push dword [esp + 0x58]
lea esi, [esp + 0x2c]
call fcn.00498d59
mov byte [esp + 0x78], 1
lea eax, [esp + 0x24]
push eax
call fcn.00498d81
mov byte [esp + 0x78], 0
lea eax, [esp + 0x30]
push eax
call fcn.00498d81
jmp 0x4e301c
lea eax, [esp + 0x1c]
push eax
push ebx
lea edi, [esp + 0x44]
call fcn.004e2ca9
cmp byte [ebx + 0xb8], 0
je 0x4e3009
cmp byte [ebx + 0x64], 0
je 0x4e3009
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov edx, dword [ebx + 0x60]
mov esi, dword [ebx + 0x5c]
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 + 0x88]
mov dword [esp + 0x18], 5
add ecx, eax
and dword [esp + 0x14], 0
mov dword [esp + 0x5c], ecx
jmp 0x4e2fca
mov ebx, dword [ebp + 8]
mov esi, dword [edi]
call fcn.004032d3
mov dword [esp + 0x10], eax
call fcn.004032f3
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.004e2a63
add dword [esp + 0x14], esi
add edi, 4
dec dword [esp + 0x18]
jne 0x4e2fc7
jmp 0x4e301c
push dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ebx
lea eax, [esp + 0x48]
call fcn.004e2b1c
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