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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
push edi
cmp eax, 0xffffffff
je 0x42ddb0
push eax
push ecx
call fcn.0042a9d0
add esp, 4
call fcn.0042aba0
mov edi, eax
mov ecx, dword [edi + 4]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
push ecx
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x42da79
mov dword [edi + 8], eax
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x42da9a
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x50]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
cmp ecx, 1
jne 0x42dab8
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov al, byte [esi + 0x18]
cmp al, 0xff
je 0x42dcab
fld1
movzx eax, al
fst dword [esp + 0x38]
mov dword [esp + 0x10], eax
fldz
lea ecx, [esp + 0x20]
fst dword [esp + 0x3c]
push ecx
fst dword [esp + 0x44]
mov dword [esp + 0x24], ebx
fst dword [esp + 0x48]
fst dword [esp + 0x4c]
fst dword [esp + 0x50]
fst dword [esp + 0x58]
fst dword [esp + 0x5c]
fst dword [esp + 0x60]
fst dword [esp + 0x64]
fst dword [esp + 0x68]
fst dword [esp + 0x70]
fst dword [esp + 0x74]
fst dword [esp + 0x78]
fst dword [esp + 0x7c]
fst dword [esp + 0x80]
fst dword [esp + 0x88]
fst dword [esp + 0x8c]
fst dword [esp + 0x90]
fst dword [esp + 0x94]
fstp dword [esp + 0x98]
fst dword [esp + 0x54]
fst dword [esp + 0x6c]
fstp dword [esp + 0x9c]
fild dword [esp + 0x14]
fdiv qword [0x45e208]
fstp dword [esp + 0x84]
call sub.gdiplus.dll_GdipCreateImageAttributes
push ebx
push ebx
lea edx, [esp + 0x40]
push edx
push 1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
push 1
push eax
call sub.gdiplus.dll_GdipSetImageAttributesColorMatrix
cmp eax, ebx
je 0x42db83
mov dword [esp + 0x24], eax
cmp dword [esi + 0x50], 2
jne 0x42dc26
mov edx, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x42dba6
mov dword [edi + 8], eax
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x14]
push eax
shr ebx, 1
push ecx
dec ebx
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x42dbca
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
mov eax, dword [esp + 0x14]
sub esp, 0x10
mov dword [esp + 0x40], ecx
mov ecx, esp
xor edx, edx
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], esi
sub esp, 0x10
mov ecx, esp
shr eax, 1
dec eax
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x40]
push eax
push edi
push ecx
call fcn.0042f080
mov edx, dword [esp + 0x4c]
add esp, 0x2c
push edx
call sub.gdiplus.dll_GdipDisposeImageAttributes
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 4]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x42dc3f
mov dword [edi + 8], eax
mov edx, dword [edi + 4]
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x42dc60
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
mov edx, dword [esp + 0x14]
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x10]
push ebx
push ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
push 0
mov dword [esp + 0x40], eax
push 0
lea ecx, [esp + 0x30]
lea eax, [esp + 0x38]
mov dword [esp + 0x40], edx
call fcn.004141f0
mov edx, dword [esp + 0x20]
push edx
call sub.gdiplus.dll_GdipDisposeImageAttributes
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x10], ebx
cmp ecx, 2
jne 0x42dd40
mov ecx, dword [edi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x42dccd
mov dword [edi + 8], eax
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 4]
lea edx, [esp + 0x10]
push edx
shr ebx, 1
push eax
dec ebx
mov dword [esp + 0x18], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x42dcf1
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
mov eax, dword [esp + 0x10]
sub esp, 0x10
mov dword [esp + 0x40], ecx
mov ecx, esp
xor edx, edx
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], esi
sub esp, 0x10
mov ecx, esp
shr eax, 1
dec eax
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
push 0
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.0042f080
add esp, 0x2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 4]
lea ecx, [esp + 0x10]
push ecx
push edx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x42dd55
mov dword [edi + 8], eax
mov ecx, dword [edi + 4]
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x42dd76
mov dword [edi + 8], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x48]
mov ecx, dword [esp + 0x18]
mov esi, dword [esi + 0x4c]
push 0
push 0
push 0
push 2
push ebx
push edx
mov edx, dword [esp + 0x2c]
push 0
push 0
push ecx
push edx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
push eax
mov eax, dword [edi + 4]
push eax
push ecx
call sub.gdiplus.dll_GdipDrawImageRectRectI
test eax, eax
je 0x42ddb0
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4