Function at 0x419530
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 + 0x1c], ebx
je 0x4195c8
cmp dword [edi + 8], ebx
jne 0x419557
mov esi, edi
call fcn.00419480
cmp dword [edi + 8], ebx
je 0x4195c8
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 0x419572
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 0x41958d
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 0x4195d4
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 + 8]
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 0x4195c5
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 + 0x28]
sub ecx, dword [edi + 0x20]
test ecx, ecx
jle 0x41963a
mov edx, dword [edi + 0x2c]
sub edx, dword [edi + 0x24]
test edx, edx
jle 0x41963a
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x28]
mov esi, dword [edi + 0x2c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
jmp 0x419646
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 0x4196c8
cmp edx, eax
mov ebx, edx
jae 0x4196b7
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.0041a8f0
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 0x41965e
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 0x419658
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 0x4195c5
mov edi, dword [edi + 8]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x50]
push ecx
push edx
call sub.gdiplus.dll_GdipBitmapUnlockBits
test eax, eax
je 0x419704
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