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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
xor ebx, ebx
cmp dword [edi + 0x18], ebx
je 0x411aa0
cmp dword [edi], ebx
je 0x411aa0
cmp dword [edi + 4], ebx
jne 0x411a2f
mov esi, edi
call fcn.00411920
cmp dword [edi + 4], ebx
je 0x411aa0
mov esi, dword [edi]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x411a4a
mov dword [esi + 8], eax
mov esi, dword [edi]
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x411a65
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [edi]
lea edx, [esp + 0x38]
push edx
push 0x26200a
push 2
lea eax, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.gdiplus.dll_GdipBitmapLockBits
cmp eax, ebx
je 0x411aac
mov dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10
mov esi, dword [edi + 4]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x50]
push edx
push 0x26200a
push 1
lea eax, [esp + 0x34]
push eax
push ecx
call sub.gdiplus.dll_GdipBitmapLockBits
cmp eax, ebx
jne 0x411a9d
mov edx, dword [esp + 0x10]
push edx
push ebp
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [edi + 0x24]
sub ecx, dword [edi + 0x1c]
test ecx, ecx
jle 0x411b12
mov edx, dword [edi + 0x28]
sub edx, dword [edi + 0x20]
test edx, edx
jle 0x411b12
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
mov esi, dword [edi + 0x28]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
jmp 0x411b1e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x48]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x10], ecx
jae 0x411ba0
cmp edx, eax
mov ebx, edx
jae 0x411b8f
mov eax, dword [esp + 0x40]
imul eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push ecx
lea edi, [eax + ebx*4]
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov ch, byte [edi + ebp]
push edx
movzx edx, byte [edi + ebp + 2]
push eax
mov cl, byte [edi + ebp + 1]
shl ecx, 8
or ecx, edx
call fcn.00413630
mov ecx, eax
shr ecx, 0x10
mov byte [edi + esi], cl
mov byte [edi + esi + 1], ah
mov byte [edi + esi + 2], al
mov eax, dword [esp + 0x2c]
add ebx, 1
add esp, 0xc
cmp ebx, eax
jb 0x411b36
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x10]
add ecx, 1
cmp ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
jb 0x411b30
mov esi, dword [edi]
mov eax, dword [esi + 4]
lea edx, [esp + 0x38]
push edx
push eax
call sub.gdiplus.dll_GdipBitmapUnlockBits
test eax, eax
jne 0x411a9d
mov edi, dword [edi + 4]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x50]
push ecx
push edx
call sub.gdiplus.dll_GdipBitmapUnlockBits
test eax, eax
je 0x411bdc
mov dword [edi + 8], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c
ret 0x10