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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x55209c]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0xc], eax
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebx + 8]
mov dword [esp + 0x18], ebx
test esi, esi
je 0x42ccad
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x42cb6f
mov dword [esi + 8], eax
mov esi, dword [ebx + 8]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x42cb8f
mov dword [esi + 8], eax
xorps xmm0, xmm0
movups xmmword [esp + 0x4c], xmm0
test edi, edi
jne 0x42cbb1
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x54], edx
jmp 0x42cbef
push edi
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [esp + 0x54]
mov eax, edx
mov ebx, dword [esp + 0x4c]
sub eax, ebx
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jle 0x42cbd8
lea edx, [ecx + ebx]
mov dword [esp + 0x54], edx
mov esi, dword [esp + 0x58]
mov eax, esi
mov edi, dword [esp + 0x50]
sub eax, edi
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jle 0x42cbf3
lea esi, [ecx + edi]
mov dword [esp + 0x58], esi
cmp dword [esp + 0x14], 0
je 0x42ccad
mov ecx, dword [ebp + 0x10]
sub edx, ebx
mov ebx, dword [esp + 0x14]
sub esi, edi
mov eax, dword [ebp + 0xc]
add esi, ecx
mov dword [esp + 0x60], ecx
add edx, eax
push 0
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], eax
mov eax, dword [ebx]
xorps xmm0, xmm0
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x6c], edx
push ecx
push ebx
mov dword [esp + 0x78], esi
movlpd qword [esp + 0x2c], xmm0
call dword [eax + 0x34]
test eax, eax
js 0x42ccad
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
sub eax, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x58]
sub eax, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], edx
mov esi, dword [eax + 8]
lea eax, [esp + 0x24]
push eax
push 0x26200a
push 1
lea eax, [esp + 0x48]
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipBitmapLockBits]
test eax, eax
je 0x42ccc1
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 8]
lea eax, [esp + 0x24]
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
test eax, eax
je 0x42cca7
mov dword [esi + 8], eax
mov eax, dword [ebx]
push ebx
call dword [eax + 0x38]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c1f5d
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x24], eax
jne 0x42cd09
mov eax, edi
sub eax, dword [esp + 0x60]
cmp dword [esp + 0x28], eax
jne 0x42cd09
cmp ecx, edx
jne 0x42cd09
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
imul eax, edx
push eax
push dword [esp + 0x38]
push dword [esp + 0x28]
call fcn.004d99e0
add esp, 0xc
jmp 0x42cc8b
sub edi, dword [esp + 0x60]
xor esi, esi
test edi, edi
jle 0x42cc8b
mov eax, esi
imul eax, ecx
push ecx
add eax, dword [esp + 0x38]
push eax
mov eax, esi
imul eax, edx
add eax, dword [esp + 0x28]
push eax
call fcn.004d99e0
mov eax, dword [esp + 0x74]
inc esi
sub eax, dword [esp + 0x6c]
add esp, 0xc
cmp esi, eax
jge 0x42cc8b
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
jmp 0x42cd17