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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x4d3a00]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [ebx + 0x38], 0xffffffff
mov dword [esp + 0x1c], esi
jne 0x451f48
cmp dword [ebx + 0x48], 0
je 0x4523aa
cmp dword [ebx + 0x38], 0xffffffff
je 0x451f5f
push dword [ebx + 0x38]
call fcn.00450657
mov ecx, eax
call fcn.00450791
mov edi, eax
mov dword [esp + 0x24], edi
jmp 0x451f6e
mov edi, dword [ebx + 0x48]
mov dword [esp + 0x24], edi
test edi, edi
je 0x4523aa
mov ecx, edi
call fcn.0045241c
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.00452443
cmp dword [ebx + 0x44], 1
mov edx, eax
mov dword [esp + 0x20], edx
jne 0x451f9c
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
jmp 0x451fa0
mov ecx, dword [esp + 0x18]
mov al, byte [ebx + 0x18]
cmp al, 0xff
je 0x45224b
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, al
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
fild dword [esp + 0x10]
mov dword [esp + 0x78], 0x3f800000
mov dword [esp + 0x90], 0x3f800000
mov dword [esp + 0xa8], 0x3f800000
mov dword [esp + 0xd8], 0x3f800000
fstp qword [esp + 0x48]
fld qword [esp + 0x48]
fdiv qword [0x4bfc98]
and dword [esp + 0x10], 0
push eax
fstp dword [esp + 0xc4]
call dword [sym.imp.gdiplus.dll_GdipCreateImageAttributes]
push 0
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x80]
push eax
push 1
push 1
push dword [esp + 0x24]
call dword [sym.imp.gdiplus.dll_GdipSetImageAttributesColorMatrix]
mov ecx, dword [esp + 0x14]
test eax, eax
cmovne ecx, eax
cmp dword [ebx + 0x44], 2
mov dword [esp + 0x14], ecx
jne 0x4521a0
mov ecx, edi
call fcn.0045241c
mov esi, eax
mov ecx, edi
shr esi, 1
dec esi
mov dword [esp + 0x48], esi
call fcn.00452443
and dword [esp + 0x38], 0
sub esp, 0x10
and dword [esp + 0x4c], 0
mov edi, esp
shr eax, 1
sub esp, 0x10
dec eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], eax
lea esi, [esp + 0x58]
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x30]
movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x68]
push 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]
call fcn.00454ac6
mov edx, dword [ebx + 0x4c]
add esp, 0x24
test edx, edx
je 0x45223c
cmp dword [ebx + 0x50], 1
jne 0x45223c
mov eax, dword [ebx + 0x10]
lea esi, [esp + 0x38]
and dword [esp + 0x38], 0
sub esp, 0x10
and dword [esp + 0x4c], 0
mov edi, esp
mov dword [esp + 0x50], eax
sub esp, 0x10
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x30]
movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x68]
push 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]
call fcn.00454ac6
add esp, 0x24
jmp 0x45223c
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
push ecx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, edi
call fcn.00452443
push eax
mov ecx, edi
call fcn.0045241c
push eax
push 0
push 0
lea eax, [esp + 0x58]
mov ecx, esi
push eax
push edi
call fcn.004523c1
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x45223c
cmp dword [ebx + 0x50], 1
jne 0x45223c
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
push ecx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x14]
push ecx
push eax
push ecx
call fcn.00452443
mov ecx, dword [ebx + 0x4c]
push eax
call fcn.0045241c
push eax
push 0
push 0
lea eax, [esp + 0x48]
mov ecx, esi
push eax
push dword [ebx + 0x4c]
call fcn.004523c1
push dword [esp + 0x10]
call dword [sym.imp.gdiplus.dll_GdipDisposeImageAttributes]
jmp 0x4523aa
cmp dword [ebx + 0x44], 2
jne 0x452317
mov ecx, edi
call fcn.0045241c
mov esi, eax
mov ecx, edi
shr esi, 1
dec esi
mov dword [esp + 0x48], esi
call fcn.00452443
shr eax, 1
sub esp, 0x10
mov dword [esp + 0x60], esi
dec eax
mov dword [esp + 0x5c], eax
lea esi, [esp + 0x38]
mov dword [esp + 0x64], eax
xor ecx, ecx
mov eax, dword [ebx + 0x10]
mov edi, esp
mov dword [esp + 0x40], eax
sub esp, 0x10
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], eax
movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00454ac6
mov edx, dword [ebx + 0x4c]
add esp, 0x24
test edx, edx
je 0x4523aa
cmp dword [ebx + 0x50], 1
jne 0x4523aa
mov eax, dword [ebx + 0x10]
lea esi, [esp + 0x28]
sub esp, 0x10
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x14]
xor ecx, ecx
mov edi, esp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
sub esp, 0x10
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 + 0x68]
push ecx
mov ecx, dword [esp + 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00454ac6
add esp, 0x24
jmp 0x4523aa
mov eax, dword [ebx + 0x3c]
push ecx
push ecx
push 0
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x7c], ecx
push ecx
mov ecx, edi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], edx
call fcn.00452443
push eax
mov ecx, edi
call fcn.0045241c
push eax
push 0
push 0
lea eax, [esp + 0x88]
mov ecx, esi
push eax
push edi
call fcn.004523c1
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x4523aa
cmp dword [ebx + 0x50], 1
jne 0x4523aa
mov eax, dword [ebx + 0x3c]
xor edi, edi
push ecx
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x40]
push ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x20]
push edi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x74], eax
call fcn.00452443
mov ecx, dword [ebx + 0x4c]
push eax
call fcn.0045241c
push eax
push edi
push edi
lea eax, [esp + 0x78]
mov ecx, esi
push eax
push dword [ebx + 0x4c]
call fcn.004523c1
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 4