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

Disassembly:
sub esp, 0x180
push esi
push edi
mov edi, dword [esp + 0x18c]
mov eax, dword [edi]
push 5
push eax
call sub.gdiplus.dll_GdipSetInterpolationMode
xor esi, esi
cmp eax, esi
je 0x42b872
mov dword [edi + 4], eax
mov ecx, dword [edi]
push 4
push ecx
call sub.gdiplus.dll_GdipSetPixelOffsetMode
cmp eax, esi
je 0x42b883
mov dword [edi + 4], eax
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x4c], esi
call sub.gdiplus.dll_GdipCreateImageAttributes
mov ecx, dword [esp + 0x1a0]
cmp ecx, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], esi
je 0x42b8de
movzx eax, cl
or eax, 0xffffff00
movzx edx, ch
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x48]
shr ecx, 0x10
movzx ecx, cl
shl eax, 8
or eax, ecx
push eax
push eax
push 1
push esi
push edx
call sub.gdiplus.dll_GdipSetImageAttributesColorKeys
cmp eax, esi
je 0x42b8d6
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x198]
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x19c]
mov edi, dword [ecx]
push ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
mov esi, dword [ecx + 4]
push ebp
mov ebp, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
mov ecx, dword [esp + 0x1b0]
test ecx, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
je 0x42ba47
mov ecx, dword [esp + 0x1ac]
test ecx, ecx
mov ecx, dword [esp + 0x19c]
je 0x42b9a6
sub eax, edx
mov edx, dword [ecx]
sub eax, esi
sub eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 8]
sub eax, edx
mov edx, dword [esp + 0x24]
sub edx, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
sub edx, ebp
sub edx, eax
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x42b984
mov edx, dword [esp + 0x1c]
add edx, edi
add eax, edx
xor edi, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
xor ebp, ebp
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 0xc]
sub eax, edx
cmp eax, dword [esp + 0x18]
jg 0x42b9a6
mov edx, dword [esp + 0x20]
add edx, esi
add eax, edx
xor esi, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
xor ebx, ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
sub edx, edi
sub edx, ebp
sub edx, eax
test edi, edi
mov dword [esp + 0x38], edx
jle 0x42b9d4
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
sub eax, edx
test ebp, ebp
jle 0x42b9d0
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
sar eax, 1
mov dword [esp + 0x2c], eax
test ebp, ebp
jle 0x42b9e7
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
sub eax, edx
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x20]
mov dword [esp + 0x18], edx
sub edx, esi
sub edx, ebx
test esi, esi
mov dword [esp + 0x10], edx
jle 0x42ba18
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 4]
sub eax, edx
test ebx, ebx
jle 0x42ba14
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
mov dword [esp + 0x30], eax
test ebx, ebx
jle 0x42ba2c
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 4]
sub eax, edx
sub eax, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
sub eax, edi
sub eax, ebp
sub eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
jmp 0x42bb1b
mov eax, dword [esp + 0x1ac]
test eax, eax
mov ecx, dword [esp + 0x19c]
je 0x42baa4
mov edx, dword [ecx]
mov eax, dword [ecx + 8]
sub eax, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
sub edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x42ba7e
mov edx, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x24], eax
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 0xc]
sub eax, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
sub edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
cmp eax, edx
jg 0x42baa4
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x28], eax
mov edx, dword [ecx]
mov eax, dword [ecx + 8]
sub eax, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
sub eax, edx
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
jne 0x42bac7
xor edi, edi
xor ebp, ebp
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 0xc]
sub eax, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
sub eax, edx
cmp eax, dword [esp + 0x14]
jne 0x42bae7
xor esi, esi
xor ebx, ebx
mov edx, dword [esp + 0x10]
sub edx, edi
sub edx, ebp
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x14]
sub edx, esi
sub edx, ebx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x18]
sub edx, edi
sub edx, ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x2c]
sub eax, esi
sub eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
mov dword [esp + 0x64], eax
add eax, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 8]
sub eax, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], eax
add eax, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0xc]
sub eax, edx
mov edx, dword [esp + 0x24]
sub edx, ebp
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
add edx, esi
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x28]
mov ecx, dword [ecx + 4]
sub edx, ebx
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x104], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x108], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x110], edx
mov dword [esp + 0x5c], ecx
mov edx, ecx
mov dword [esp + 0x114], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x118], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x11c], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x120], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x124], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x128], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x12c], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x134], edx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x138], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x13c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x140], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x144], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x148], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14c], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x150], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x154], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x158], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x100], ecx
mov dword [esp + 0x130], ecx
mov dword [esp + 0x160], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x15c], edx
mov dword [esp + 0x164], eax
mov edx, dword [esp + 0x48]
mov dword [esp + 0x170], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x178], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x180], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x9c], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x168], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xac], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x174], eax
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x16c], ecx
mov dword [esp + 0x17c], ecx
mov dword [esp + 0x18c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xb8], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x188], eax
lea eax, [edi + ecx]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0xbc], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x98], ebp
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
mov dword [esp + 0xc4], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xf8], ebp
pop ebp
mov dword [esp + 0x74], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xd4], edi
mov edi, dword [esp + 0x194]
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], esi
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], eax
mov dword [esp + 0xf0], ecx
xor esi, esi
pop ebx
nop
mov eax, dword [esp + esi + 0x100]
test eax, eax
jle 0x42be7b
mov eax, dword [esp + esi + 0x104]
test eax, eax
jle 0x42be7b
mov eax, dword [esp + esi + 0x70]
test eax, eax
jle 0x42be7b
mov eax, dword [esp + esi + 0x74]
test eax, eax
jle 0x42be7b
mov ecx, dword [esp + 0x50]
push 0
push 0
push ecx
mov ecx, dword [esp + esi + 0x78]
push 2
mov edx, eax
mov eax, dword [esp + esi + 0x80]
push edx
mov edx, dword [esp + esi + 0x7c]
push eax
push ecx
mov ecx, dword [esp + 0x1a8]
push edx
lea eax, [esp + esi + 0x118]
push eax
push edi
call fcn.0040d280
add esi, 0x10
cmp esi, 0x90
jl 0x42be20
mov ecx, dword [esp + 0x48]
push ecx
call sub.gdiplus.dll_GdipDisposeImageAttributes
pop edi
pop esi
add esp, 0x180
ret