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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x583d10]
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 + 0x3c], 0xffffffff
mov dword [esp + 0x1c], esi
jne 0x4637e0
cmp dword [ebx + 0x4c], 0
je 0x463c4b
cmp dword [ebx + 0x3c], 0xffffffff
je 0x4637f7
push dword [ebx + 0x3c]
call fcn.004611b7
mov ecx, eax
call fcn.00461300
mov edi, eax
mov dword [esp + 0x24], edi
jmp 0x463806
mov edi, dword [ebx + 0x4c]
mov dword [esp + 0x24], edi
test edi, edi
je 0x463c4b
mov ecx, edi
call fcn.0046366c
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.00463693
cmp dword [ebx + 0x48], 1
mov edx, eax
mov dword [esp + 0x20], edx
jne 0x463834
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
jmp 0x463838
mov ecx, dword [esp + 0x18]
mov al, byte [ebx + 0x1c]
cmp al, 0xff
je 0x463ae7
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 [0x5607e8]
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 + 0x48], 2
mov dword [esp + 0x14], ecx
mov ecx, edi
jne 0x463a3a
call fcn.0046366c
mov esi, eax
mov ecx, edi
shr esi, 1
dec esi
mov dword [esp + 0x48], esi
call fcn.00463693
and dword [esp + 0x38], 0
and dword [esp + 0x3c], 0
shr eax, 1
dec eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], eax
lea esi, [esp + 0x38]
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
push eax
sub esp, 0x10
mov edi, esp
sub esp, 0x10
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 + 0x6c]
push dword [esp + 0x48]
push dword [esp + 0x44]
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.0046639f
add esp, 0x2c
cmp dword [ebx + 0x50], 0
je 0x463ad8
cmp dword [ebx + 0x54], 1
jne 0x463ad8
mov eax, dword [ebx + 0x14]
lea esi, [esp + 0x38]
and dword [esp + 0x38], 0
and dword [esp + 0x3c], 0
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
push eax
sub esp, 0x10
mov edi, esp
sub esp, 0x10
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 + 0x6c]
push dword [ebx + 0x50]
push dword [esp + 0x44]
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.0046639f
add esp, 0x2c
jmp 0x463ad8
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
push 0
mov dword [esp + 0x48], eax
lea eax, [esp + 0x14]
push 0
push eax
push 2
call fcn.00463693
push eax
mov ecx, edi
call fcn.0046366c
push eax
push 0
push 0
lea eax, [esp + 0x58]
mov ecx, esi
push eax
push edi
call fcn.0046360e
mov ecx, dword [ebx + 0x50]
test ecx, ecx
je 0x463ad8
cmp dword [ebx + 0x54], 1
jne 0x463ad8
mov eax, dword [ebx + 0x40]
xor edi, edi
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
push edi
mov dword [esp + 0x38], eax
lea eax, [esp + 0x14]
push edi
push eax
push 2
call fcn.00463693
mov ecx, dword [ebx + 0x50]
push eax
call fcn.0046366c
push eax
push edi
push edi
lea eax, [esp + 0x48]
mov ecx, esi
push eax
push dword [ebx + 0x50]
call fcn.0046360e
push dword [esp + 0x10]
call dword [sym.imp.gdiplus.dll_GdipDisposeImageAttributes]
jmp 0x463c4b
cmp dword [ebx + 0x48], 2
jne 0x463bb5
mov ecx, edi
call fcn.0046366c
mov esi, eax
mov ecx, edi
shr esi, 1
dec esi
mov dword [esp + 0x48], esi
call fcn.00463693
xor ecx, ecx
shr eax, 1
push ecx
mov dword [esp + 0x54], esi
dec eax
mov dword [esp + 0x50], eax
lea esi, [esp + 0x2c]
mov dword [esp + 0x58], eax
sub esp, 0x10
mov eax, dword [ebx + 0x14]
mov edi, esp
mov dword [esp + 0x44], eax
sub esp, 0x10
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], 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 + 0x6c]
push dword [esp + 0x48]
push dword [esp + 0x44]
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.0046639f
add esp, 0x2c
cmp dword [ebx + 0x50], 0
je 0x463c4b
cmp dword [ebx + 0x54], 1
jne 0x463c4b
mov eax, dword [ebx + 0x14]
lea esi, [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x18]
push ecx
sub esp, 0x10
mov dword [esp + 0x3c], ecx
mov edi, esp
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], eax
sub esp, 0x10
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 + 0x6c]
push dword [ebx + 0x50]
push dword [esp + 0x44]
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.0046639f
add esp, 0x2c
jmp 0x463c4b
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x6c], eax
xor eax, eax
push eax
push eax
push eax
mov dword [esp + 0x7c], ecx
mov ecx, edi
push 2
mov dword [esp + 0x84], edx
call fcn.00463693
push eax
mov ecx, edi
call fcn.0046366c
push eax
push 0
push 0
lea eax, [esp + 0x88]
mov ecx, esi
push eax
push edi
call fcn.0046360e
mov ecx, dword [ebx + 0x50]
test ecx, ecx
je 0x463c4b
cmp dword [ebx + 0x54], 1
jne 0x463c4b
mov eax, dword [ebx + 0x40]
xor edi, edi
push edi
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x44]
push edi
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x20]
push edi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2c]
push 2
mov dword [esp + 0x74], eax
call fcn.00463693
mov ecx, dword [ebx + 0x50]
push eax
call fcn.0046366c
push eax
push edi
push edi
lea eax, [esp + 0x78]
mov ecx, esi
push eax
push dword [ebx + 0x50]
call fcn.0046360e
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f225b
mov esp, ebp
pop ebp
ret 4