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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x4b5870]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0xc], eax
push esi
push edi
push dword [ebx + 0x38]
call fcn.004370c3
mov ecx, eax
call fcn.0043721e
mov ecx, eax
mov dword [esp + 0x10], eax
xor edi, edi
call fcn.004393f6
mov ecx, dword [esp + 0x10]
mov esi, eax
shr esi, 2
call fcn.0043941d
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x438d73
cmp ecx, 1
jne 0x438d61
mov edi, esi
jmp 0x438d73
cmp ecx, 2
jne 0x438d6b
lea edi, [esi + esi]
jmp 0x438d73
cmp ecx, 3
jne 0x438d73
imul edi, esi, 3
mov cl, byte [ebx + 0x18]
cmp cl, 0xff
je 0x438ee6
and dword [esp + 0x7c], 0
and dword [esp + 0x80], 0
and dword [esp + 0x84], 0
and dword [esp + 0x88], 0
and dword [esp + 0x8c], 0
and dword [esp + 0x94], 0
and dword [esp + 0x98], 0
and dword [esp + 0x9c], 0
and dword [esp + 0xa0], 0
and dword [esp + 0xa4], 0
and dword [esp + 0xac], 0
and dword [esp + 0xb0], 0
and dword [esp + 0xb4], 0
and dword [esp + 0xb8], 0
and dword [esp + 0xbc], 0
and dword [esp + 0xc4], 0
and dword [esp + 0xc8], 0
and dword [esp + 0xcc], 0
and dword [esp + 0xd0], 0
and dword [esp + 0xd4], 0
movzx eax, cl
mov dword [esp + 0xc], eax
lea eax, [esp + 0x18]
fild dword [esp + 0xc]
mov dword [esp + 0x78], 0x3f800000
mov dword [esp + 0x90], 0x3f800000
mov dword [esp + 0xa8], 0x3f800000
mov dword [esp + 0xd8], 0x3f800000
fstp qword [esp + 0x70]
fld qword [esp + 0x70]
fdiv qword [0x4a95f8]
and dword [esp + 0x18], 0
push eax
fstp dword [esp + 0xc4]
call dword [sym.imp.gdiplus.dll_GdipCreateImageAttributes]
push 0
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x80]
push eax
push 1
push 1
push dword [esp + 0x2c]
call dword [sym.imp.gdiplus.dll_GdipSetImageAttributesColorMatrix]
mov ecx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x58], esi
cmovne ecx, eax
mov eax, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x1c], ecx
push edx
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x64], eax
push ecx
push 2
push eax
push esi
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x68]
push edx
push edi
push eax
push dword [esp + 0x34]
mov ecx, esi
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edx
call fcn.00439398
push dword [esp + 0x18]
call dword [sym.imp.gdiplus.dll_GdipDisposeImageAttributes]
jmp 0x439011
cmp dword [ebx + 0x10], esi
jne 0x438f28
cmp dword [ebx + 0x14], eax
jne 0x438f28
and dword [esp + 0x38], 0
and dword [esp + 0x3c], 0
push 0
push 0
push 0
push 2
push eax
push esi
push 0
mov dword [esp + 0x60], eax
lea eax, [esp + 0x54]
push edi
push eax
push dword [esp + 0x34]
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x3c]
mov ecx, esi
call fcn.00439398
jmp 0x439011
and dword [esp + 0x24], 0
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x26200a
push 0
push eax
push esi
mov dword [esp + 0x78], vtable.Gdiplus::Bitmap.0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
and dword [esp + 0xc], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x24]
push ecx
push eax
mov dword [esp + 0x6c], eax
call dword [sym.imp.gdiplus.dll_GdipGetImageGraphicsContext]
xor ecx, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xc]
push ecx
push ecx
push ecx
push 2
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x30]
push eax
push esi
push ecx
mov dword [esp + 0x50], eax
lea eax, [esp + 0x44]
push edi
push eax
push dword [esp + 0x34]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x58], esi
call fcn.00439398
and dword [esp + 0x28], 0
lea esi, [esp + 0x28]
and dword [esp + 0x2c], 0
lea edx, [esp + 0x60]
push 5
pop eax
mov dword [esp + 0x38], eax
sub esp, 0x10
mov dword [esp + 0x4c], eax
mov edi, esp
mov dword [esp + 0x50], eax
sub esp, 0x10
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x54], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x58]
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.0043b2cd
add esp, 0x24
push dword [esp + 0x48]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push dword [esp + 0x64]
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
push esi
mov ecx, ebx
call fcn.00439030
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046f685
mov esp, ebp
pop ebp
ret 4