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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x14], eax
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebx + 8]
mov dword [esp + 0x20], ebx
test esi, esi
je 0x10149a07
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 0x101498bf
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 0x101498df
mov dword [esi + 8], eax
xorps xmm0, xmm0
movdqu xmmword [esp + 0x4c], xmm0
test edi, edi
jne 0x10149904
mov edx, dword [esp + 0xc]
xor ebx, ebx
mov esi, dword [esp + 0x10]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], ebx
jmp 0x10149942
push edi
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [esp + 0x54]
mov eax, edx
mov edi, dword [esp + 0x4c]
sub eax, edi
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jle 0x1014992b
lea edx, [ecx + edi]
mov dword [esp + 0x54], edx
mov esi, dword [esp + 0x58]
mov eax, esi
mov ebx, dword [esp + 0x50]
sub eax, ebx
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jle 0x10149946
lea esi, [ecx + ebx]
mov dword [esp + 0x58], esi
cmp dword [esp + 0x1c], 0
je 0x10149a07
mov ecx, dword [ebp + 0x10]
sub esi, ebx
mov ebx, dword [esp + 0x1c]
add esi, ecx
mov eax, dword [ebp + 0xc]
sub edx, edi
mov dword [esp + 0x60], ecx
add edx, eax
push 0
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], eax
mov eax, dword [ebx]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], edx
push ecx
push ebx
mov dword [esp + 0x78], esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [eax + 0x34]
test eax, eax
js 0x10149a07
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 + 0x20]
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 0x10149a1b
mov dword [esi + 8], eax
mov eax, dword [esp + 0x20]
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 0x10149a01
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.1033d458
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 + 0x14]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x24], eax
jne 0x10149a63
mov eax, edi
sub eax, dword [esp + 0x60]
cmp dword [esp + 0x28], eax
jne 0x10149a63
cmp ecx, edx
jne 0x10149a63
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
imul eax, edx
push eax
push dword [esp + 0x38]
push dword [esp + 0x20]
call sub.MSVCR120.dll_memcpy
add esp, 0xc
jmp 0x101499e5
sub edi, dword [esp + 0x60]
xor esi, esi
test edi, edi
jle 0x101499e5
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 + 0x20]
push eax
call sub.MSVCR120.dll_memcpy
mov eax, dword [esp + 0x74]
inc esi
sub eax, dword [esp + 0x6c]
add esp, 0xc
cmp esi, eax
jge 0x101499e5
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
jmp 0x10149a71