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

Disassembly:
sub esp, 0x68
push ebx
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x78]
push edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x34]
push eax
xor ebp, ebp
push esi
mov dword [esp + 0x3c], ebp
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
jne 0x46236d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x60]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp word [esp + 0x72], 0x20
mov dword [esp + 0x18], ebp
je 0x462399
push esi
call fcn.004622f0
add esp, 4
jmp 0x462454
mov eax, dword [esp + 0x44]
push eax
call fcn.004622b0
add esp, 4
mov edi, eax
mov edx, dword [edi + 4]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x4623c5
mov dword [edi + 8], eax
mov ecx, dword [edi + 4]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebp
je 0x4623e2
mov dword [edi + 8], eax
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x14]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
mov ecx, dword [edi + 4]
push eax
push ecx
call sub.gdiplus.dll_GdipGetImagePixelFormat
cmp eax, ebp
je 0x46240b
mov dword [edi + 8], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x48]
push edx
mov edx, dword [edi + 4]
push eax
push 1
lea ecx, [esp + 0x30]
push ecx
push edx
call sub.gdiplus.dll_GdipBitmapLockBits
cmp eax, ebp
je 0x46242c
mov dword [edi + 8], eax
push 0x10
call sub.gdiplus.dll_GdipAlloc
cmp eax, ebp
je 0x462452
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x58]
mov esi, eax
call fcn.00462270
jmp 0x462454
xor eax, eax
mov esi, eax
mov dword [esp + 0x10], 0xff000000
xor ebx, ebx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebp
je 0x462479
mov dword [esi + 8], eax
cmp ebx, dword [esp + 0x14]
jae 0x4624d1
xor edi, edi
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x46249a
mov dword [esi + 8], eax
cmp edi, dword [esp + 0x14]
jae 0x4624ce
mov edx, dword [esi + 4]
lea ecx, [esp + 0x20]
push ecx
push edi
push ebx
push edx
call sub.gdiplus.dll_GdipBitmapGetPixel
cmp eax, ebp
je 0x4624b9
mov dword [esi + 8], eax
jmp 0x4624c1
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
test dword [esp + 0x10], 0xff000000
jne 0x462505
inc edi
jmp 0x462481
inc ebx
jmp 0x462460
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebp
je 0x462503
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipCreateBitmapFromHICON
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
jmp 0x462505
xor esi, esi
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebp
mov edx, dword [esi + 4]
push ecx
push edx
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
cmp eax, ebp
je 0x46251f
mov dword [esi + 8], eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x462539
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esp + 0x44]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call esi
mov ecx, dword [esp + 0x40]
push ecx
call esi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4