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

Disassembly:
sub esp, 0x9c
and dword [esp + 0x54], 0
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x68]
mov ebp, edx
stosd dword es:[edi], eax
mov ebx, ecx
mov dword [esp + 0x50], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x64]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetIconInfo]
and dword [esp + 0x90], 0
lea edi, [esp + 0x94]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x90]
push eax
push 0x18
push dword [esp + 0x7c]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edi, dword [esp + 0x94]
mov dword [esp + 0x24], edi
test edi, edi
je 0x419f6b
mov esi, dword [esp + 0x98]
mov dword [esp + 0x2c], esi
test esi, esi
je 0x419f6b
and dword [esp + 0x54], 0
and dword [esp + 0x58], 0
push 0x10
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], esi
call dword [sym.imp.gdiplus.dll_GdipAlloc]
test eax, eax
je 0x419caa
push ecx
push esi
push edi
mov ecx, eax
call fcn.00419b50
mov ebx, eax
mov dword [esp + 0x14], eax
jmp 0x419cb0
xor ebx, ebx
mov dword [esp + 0x14], ebx
and dword [esp + 0x78], 0
lea edi, [esp + 0x7c]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x78]
push eax
push 0x26200a
push 2
lea eax, [esp + 0x60]
push eax
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipBitmapLockBits]
test eax, eax
je 0x419ce1
mov dword [ebx + 8], eax
xor ecx, ecx
lea eax, [esp + 0x34]
push eax
push ecx
push dword [esp + 0x7c]
mov byte [esp + 0x1f], cl
mov dword [esp + 0x40], ecx
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
and dword [esp + 0x38], 0
lea edi, [esp + 0x3c]
mov ebp, dword [esp + 0x34]
xor eax, eax
stosd dword es:[edi], eax
mov dword [esp + 0x28], ebp
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov edi, dword [sym.imp.gdiplus.dll_GdipGetImagePixelFormat]
push eax
push ebp
call edi
mov eax, dword [esp + 0x18]
and eax, 0xff00
cmp eax, 0x2000
je 0x419d3d
lea eax, [esp + 0x38]
push eax
push 0x26200a
jmp 0x419d4e
lea eax, [esp + 0x18]
push eax
push ebp
call edi
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x1c]
push 1
lea eax, [esp + 0x60]
push eax
push ebp
call dword [sym.imp.gdiplus.dll_GdipBitmapLockBits]
mov eax, dword [esp + 0x40]
cdq
mov ebp, eax
xor ebp, edx
sub ebp, edx
cmp dword [esp + 0x40], 0
jge 0x419e1a
test esi, esi
je 0x419e8a
and dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
mov bl, byte [esp + 0x13]
shl eax, 2
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x88]
sub edi, esi
push ebp
add eax, esi
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esp + 0x1c], 0xff000000
xor edx, edx
test bl, bl
jne 0x419e02
mov eax, dword [esp + 0x30]
xor ebx, ebx
and dword [esp + 0x20], edx
add eax, edi
mov ecx, eax
sub ecx, edi
add ecx, 3
shr ecx, 2
cmp edi, eax
mov eax, dword [esp + 0x1c]
cmova ecx, dword [esp + 0x20]
test ecx, ecx
je 0x419def
or edx, dword [edi]
and eax, dword [edi]
inc ebx
lea edi, [edi + 4]
cmp ebx, ecx
jb 0x419de3
mov ecx, 0xff000000
test ecx, edx
je 0x419e00
cmp eax, ecx
je 0x419e00
mov bl, 1
jmp 0x419e02
xor bl, bl
add esi, dword [esp + 0x30]
dec dword [esp + 0x18]
jne 0x419d96
mov esi, dword [esp + 0x2c]
mov byte [esp + 0x13], bl
mov ebx, dword [esp + 0x14]
jmp 0x419e8a
imul ebp, esi
push ebp
push dword [esp + 0x4c]
push dword [esp + 0x90]
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x54]
mov eax, esi
imul eax, dword [esp + 0x30]
xor edi, edi
and dword [esp + 0x38], edi
add esp, 0xc
and dword [esp + 0x20], edi
mov ebp, 0xff000000
lea eax, [edx + eax*4]
mov ecx, eax
sub ecx, edx
add ecx, 3
shr ecx, 2
cmp edx, eax
cmova ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x419e73
mov eax, dword [esp + 0x20]
or edi, dword [edx]
and ebp, dword [edx]
inc eax
lea edx, [edx + 4]
cmp eax, ecx
jb 0x419e67
mov eax, 0xff000000
test eax, edi
je 0x419e85
mov byte [esp + 0x13], 1
cmp ebp, eax
jne 0x419e8a
mov byte [esp + 0x13], 0
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x38]
mov ebp, dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
push eax
push edi
call ebp
push edi
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
cmp byte [esp + 0x13], 0
jne 0x419f38
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0x78]
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
and dword [esp + 0x38], 0
lea edi, [esp + 0x3c]
xor eax, eax
mov ecx, dword [esp + 0x14]
stosd dword es:[edi], eax
mov dword [esp + 0x28], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push eax
push 0x26200a
push 1
lea eax, [esp + 0x60]
push eax
push ecx
call dword [sym.imp.gdiplus.dll_GdipBitmapLockBits]
imul esi, dword [esp + 0x24]
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x88]
test esi, esi
je 0x419f25
mov ecx, dword [edi]
lea edi, [edi + 4]
shl ecx, 0x18
not ecx
mov eax, ecx
and eax, 0xff000000
or eax, dword [edx]
and eax, ecx
mov dword [edx], eax
lea edx, [edx + 4]
dec esi
jne 0x419f08
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x38]
push eax
push esi
call ebp
push esi
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
lea eax, [esp + 0x78]
push eax
push dword [ebx + 4]
call ebp
test eax, eax
je 0x419f49
mov dword [ebx + 8], eax
push dword [esp + 0x74]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x70]
call esi
mov ecx, dword [esp + 0x50]
push ebx
call fcn.004198bb
mov eax, dword [esp + 0x50]
jmp 0x419fa8
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x419f9c
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push ebp
mov dword [esi], 0x453e64
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHICON]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
jmp 0x419f9e
xor esi, esi
push esi
mov ecx, ebx
call fcn.004198bb
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret